Automic Workload Automation

Expand all | Collapse all

Print maximum number of data in a variable

Anon Anon01-31-2018 08:15 AM

  • 1.  Print maximum number of data in a variable

    Posted 01-31-2018 01:42 AM
    How could we actually print a variable stored with huge number of data. Now if I print a variable, it print only upto 1024 characters.. is there a way to print beyond 1024 ? 


  • 2.  Print maximum number of data in a variable

    Posted 01-31-2018 04:51 AM
    Hi,

    Please don't post the exact same thing twice.

    What Automic version are you on? According to this, there was a limit of 1023 (or 1024?) characters which was, however, removed in version 11.2. Are you possibly using an older version?

    Kind regards,
    Carsten Schmitz


  • 3.  Print maximum number of data in a variable

    Posted 01-31-2018 05:47 AM
    Out of couriosity I did a quick test (V11.2.6):
    Entered a text (part of Stephen King's The Boogeyman - 3.648 Characters) into a static VARA object.

    Then I tried GET_VAR and PREP_PROCESS_VAR

    Surprise: both script commands return the same amount of characters: 1041

    Interesting: a STR_LENGTH returns the value of 3575

    If I copy-paste the whole text into Notepad++ it says: 3648

    7f4946abxjmn.jpghttps://us.v-cdn.net/5019921/uploads/editor/0i/7f4946abxjmn.jpg" width="1300">

    j0e6irq01n06.jpg

    ...strange...


  • 4.  Print maximum number of data in a variable

    Posted 01-31-2018 05:50 AM
    Both Script VARAs get cut off - and there are only "..." as indicators...

    py94l6thh060.jpghttps://us.v-cdn.net/5019921/uploads/editor/dt/py94l6thh060.jpg" width="758">


  • 5.  Print maximum number of data in a variable

    Posted 01-31-2018 06:41 AM
    FrankMuffke.. Exactly the same problem I am facing too. It is trimming to 1024 characters ( ended with ...) . Ideally I wanted to know if there are any way to actually print beyond 1024... i mean any tool level settings to be  changed ??


  • 6.  Print maximum number of data in a variable

    Posted 01-31-2018 06:42 AM
    FrankMuffke.. Exactly the same problem I am facing too. It is trimming to 1024 characters ( ended with ...) . Ideally I wanted to know if there are any way to actually print beyond 1024... i mean any tool level settings to be  changed ??


  • 7.  Print maximum number of data in a variable

    Posted 01-31-2018 06:44 AM
    Carsten Schmitz.. It wasn't intential to post same thing twice.. I had problem in loading webpage, so it came twice. 

    Coming to the version. I use trial version v12.1


  • 8.  Print maximum number of data in a variable

    Posted 01-31-2018 06:51 AM
    Interresting.

    I will readily admit that I am confused by the ambigous usage of the term "variable" in Automic. I assumed the original poster meant the &variable#-type variable.

    (On a side note: we should probably agree on giving "code names" to the types of variables among us community members if Automic can't get their terminology in order).

    Regardless: I have tried to put the preamble and first chapter of the communist manifesto into such a variable, and got the same cut-off result:

    2018-01-31 12:43:38 - U00020408  A spectre is haunting Europe ? the spectre of communism. All the powers of old Europe have entered into a holy alliance to exorcise this spectre: Pope and Tsar, Metternich and Guizot, French Radicals and German police-spies.Where is the party in opposition that has not been decried as communistic by its opponents in power? Where is the opposition that has not hurled back the branding reproach of communism, against the more advanced opposition parties, as well as against its reactionary adversaries?Two things result from this fact:I. Communism is already acknowledged by all European powers to be itself a power.II. It is high time that Communists should openly, in the face of the whole world, publish their views, their aims, their tendencies, and meet this nursery tale of the Spectre of Communism with a manifesto of the party itself.To this end, Communists of various nationalities have assembled in London and sketched the following manifesto, to be published in the English, French, German, Italian, Flemish ...
    Could it be the "print" statement cutting off the contents?

    Oh, and I also found another bug. I should probably make an Incident: "Putting the communist manifesto into a variable breaks the AWI editor"?

    (edit: The output is exactly 1024 characters. So the limit is still there - did they possibly remove it from the variables, but kept it on the :PRINT command?!)


  • 9.  Print maximum number of data in a variable

    Posted 01-31-2018 06:58 AM
    Yes. Yes they did.

    :PRINT cuts off after 1024 characters even if not involving any variables.

    And no, I don't readily know a way arround that (apart from possibly using other things besides ":PRINT"). I suggest ideas.automic.com, while being fully aware of the futility of having to file things that are not working as expected as "ideas".


  • 10.  Print maximum number of data in a variable

    Posted 01-31-2018 07:26 AM

    My (probably) last test in this matter: Version 10.

    lu20ok07edzg.pnghttps://us.v-cdn.net/5019921/uploads/editor/wb/lu20ok07edzg.png" width="754">

    This is NOT the line limit of 1024 characters, this is a variable size limit.

    Conclusion:

    Version 10 had a limit for 1024 characters on variables. If you print a literal text longer than 1024 characters, it also gets cut off with "..." at the end.

    Version 11/12 has removed the limit on variables, but not on print statements, so you can have them longer, but you can't print them.

    How quaint ... sorry, OP, I don't know how to go arround this.


  • 11.  Print maximum number of data in a variable

    Posted 01-31-2018 07:34 AM
     I suggest ideas.automic.com, while being fully aware of the futility of having to file things that are not working as expected as "ideas".
    sorry to contradict but this is obviously a bug (in my opinion)

    • The limit of 1023 characters (data type: text) has been removed for the values of static and dynamic VARA objects.
    • The maximum size of script variables (1024 characters) has been removed. There are no limits anymore for the values of script variables.

    https://docs.automic.com/documentation/webhelp/english/ALL/components/AE/11.2/All%20Guides/help.htm#uc110a.htm%3FTocPath%3DRelease%2520Notes%7CRelease%25C2%25A0Notes%2520Version%252011%7C_____2

    Hope Automic does not argue "thats by design, because only PRINT does a cut-off after 1024 chars"...




  • 12.  Print maximum number of data in a variable

    Posted 01-31-2018 07:48 AM
    I proved it - Yes its the PRINT command.

    if you do an echo "&SCRIPTVAR" - its displayed correctly in the OS job.....


  • 13.  Print maximum number of data in a variable

    Posted 01-31-2018 07:53 AM
     I suggest ideas.automic.com, while being fully aware of the futility of having to file things that are not working as expected as "ideas".


    Hope Automic does not argue "thats by design, because only PRINT does a cut-off after 1024 chars"...
    No need to be sorry, could be seen as a bug as well.

    Either way, one might also try filing an incident and see where that goes. Bug or not, it's silly to build a bigger engine into a car, then limit it to the former horsepower by means of an electronic limiter.

    BUT I suspect they might still claim that this is by design. My crystal ball tells me this: If you allow large heaps of text, and most of all very long lines, in variables, inevitably someone will make something that makes AWI, the report display, and the script editor choke.


  • 14.  Print maximum number of data in a variable

    Posted 01-31-2018 07:58 AM
    Carsten Schmitz said:

    Bug or not, it's silly to build a bigger engine into a car, then limit it to the former horsepower by means of an electronic limiter.
    I just say "Apple Iphone Accumulator"......


  • 15.  Print maximum number of data in a variable

    Posted 01-31-2018 08:15 AM
    INC00219382


  • 16.  Print maximum number of data in a variable

    Posted 02-01-2018 12:00 AM
    thanks Wolfgang Brueckler and Carsten Schmitz.. we shall wait for the incident to be solved


  • 17.  Print maximum number of data in a variable

    Posted 02-01-2018 03:08 AM
    as Workaround I personally would keep the script VARAs smaller, if possible or write it to a file....


  • 18.  Print maximum number of data in a variable

    Posted 02-02-2018 09:36 AM
    I got response from support:

    they stated, "its written in documentation"
                                                       

                       

    Text that should be written to the dialog box or activation protocol, maximum 1024 characters for Text or Text1 + Text2.

    https://docs.automic.com/documentation/webhelp/english/ALL/components/AE/11.2/All%20Guides/help.htm#ucaadu.htm?Highlight=print

    So I responded, its not a cosequent solution omitting the limit for script variables but NOT omitting the limit for related script function - its not reliable setting a script vara if I am not able to print it to the report...

    So in my opinion its a design bug...


    cheers, Wolfgang


  • 19.  Print maximum number of data in a variable

    Posted 02-05-2018 12:49 AM
    thanks Wolfgang Brueckler. In that case , how can we expect it to be fixed ??


  • 20.  Print maximum number of data in a variable

    Posted 02-05-2018 11:36 AM
    Hi Srikanth_Veeraraghavan_9912

    if it will be fixed, there will be a Service pack for different versions to be installed...

    cheers, Wolfgang


  • 21.  Print maximum number of data in a variable

    Posted 02-05-2018 11:48 AM
    Wolfgang Brueckler said:
    Hi Srikanth_Veeraraghavan_9912

    if it will be fixed, there will be a Service pack for different versions to be installed...
    Don't hold your breath though. First, Wolfgang's Incident report would have to result in a PRB-style problem report. Once that hurdle is passed (if that hurdle is passed), it'll be in a service pack or new release. But that may be some time.

    Just being a realist here. My cup is half empty instead of half full, but at least it's beer.


  • 22.  Print maximum number of data in a variable

    Posted 02-08-2018 03:43 AM

    The limitation of ":print" is intentional to avoid extensive growth of reports and other outputs. This behavior could be considered as a bug, if it wouldn’t work as documented or if it would be possible to print above the 1024 length in any AE version.



  • 23.  Print maximum number of data in a variable

    Posted 02-08-2018 04:16 AM
    Thanks for the clarification.

    I'm still firmly in the "so sad ... make :PRINT statements great again" camp, but it's good to have a definitive answer, so cheers for that.


  • 24.  Print maximum number of data in a variable

    Posted 02-08-2018 04:29 AM
    Well, what about a parameter that let's the client (us) decide if we want :PRINT to be limited or not.


  • 25.  Print maximum number of data in a variable

    Posted 02-10-2018 09:21 AM
    Hi Gabor_Szilagyi_7654

    THX for your answer, that helps a bit understanding the reason...

    But still unclear to me is the fact that all limitations were removed in V11.1 BUT this was not ?!?!

    I still support Matthias' suggestion above.

    cheers & THX

    Wolfgang


  • 26.  Print maximum number of data in a variable

    Posted 02-11-2018 10:12 AM
    Hi Gabor_Szilagyi_7654

    one more: How to check if and what is entered into a VARA field if I am not able to print it?

    cheers & THX, Wolfgang


  • 27.  Print maximum number of data in a variable

    Posted 02-12-2018 04:20 AM
    Hi Gabor_Szilagyi_7654

    one more: How to check if and what is entered into a VARA field if I am not able to print it?
    Always a friend of car analogies in IT.

    Think about is this way: It's like a really old, probably French car. The model of February 1911 has a greater tank tank than the old model. You can now drive it for an extra 30 miles, but you still don't get a fuel gauge.

    (What I'm saying is: You can probably do things with your now longer variables, such as process it with string functions beyond 1024 chars (at least I hope), but you can't print it).

    Btw, the usability of old French cars was dire, and checking the fuel levels with a match probably lead to many regrettable fauxpas.

    Or, think of it in terms of quantum physics. Your long strings can do all kinds of stuff, but the second you try to look at what they did beyond 1024 characters, the wave function collapses :smiley:


  • 28.  Print maximum number of data in a variable

    Posted 02-12-2018 05:34 AM


    such as process it with string functions beyond 1024 chars (at least I hope)

    Lets try this for giggles, shall we?

    :SET &LONG_VAR# = "(again, text of the Communist Manifesto in here, because why not? :)" :SET &POS#=STR_FIND(&LONG_VAR#,"bourgeoisie") :print "position fwd is &POS#" :SET &POS_REV#=STR_FIND_REVERSE(&LONG_VAR#,"bourgeoisie") :print "position rev is &POS_REV#" :SET &MIDDLE# = SUBSTR(&LONG_VAR#,1025,1096) :PRINT "mid section is &MIDDLE#"

    :SET &MIDDLE_SHORT# = SUBSTR(&LONG_VAR#,1028,20)
    :PRINT "mid section is &MIDDLE_SHORT#"

    :SET &EXTRA_STRING#="copyright The Marx/Engels Printing Works, all rights reserved." :SET &LONGER_VAR# = STR_CAT(&LONG_VAR#, &EXTRA_STRING#) :SET &POS_REV#=STR_FIND_REVERSE(&LONGER_VAR#,"Marx") :print "position rev on the expanded string is now &POS_REV#" :SET &STRING_CLONE# = &LONG_VAR# :SET &IDENTICAL# = STR_MATCH(&STRING_CLONE#, &LONG_VAR#) :PRINT "Are they identical? Computer says &IDENTICAL#" :SET &LEN_ORIGINAL# = STR_LENGTH(&LONG_VAR#) :SET &LEN_CLONE# = STR_LENGTH(&STRING_CLONE#) :SET &LEN_EXTRA_BITS_ADDED# = STR_LENGTH(&LONGER_VAR#) :PRINT "Original: &LEN_ORIGINAL#, Clone: &LEN_CLONE#, Extra Bits: &LEN_EXTRA_BITS_ADDED#"
    Findings:

    • (accidental bug find) the copy and paste breaks down on very long lines, if you mark something towards the end, it copies other sections than are visibly marked (AWA 12.1, IE). Web framework bug, probably.

    • (accidental bug find) if you try to copy a long line from the start, it only copies the first 4096 bytes. Seems the web framework used for the editor has a severe limitation there (again, AWA 12.1, IE).

    • (accidental bug find) when you copy/paste a very long line into the editor, it screws up cursor positioning and the next press of backspace or any edit screws up the line. So short of looking in to the DB, it's hard to tell what my long line in script line #1 even contains, making testing more ... interesting.

    Onto the (trumpet blast ...!) RESULT.

    tl;dr: String functions seem to work beyond 1024 characters.

    Detailed results, lines broken to fit, (elipsised) as needed, with <comments> by me and screwed up by the forum software *argh ...*

    2018-02-12 10:57:37 - U00020408 position fwd is 0000000000002184

    <spot on! STR_FIND works beyond 1024>

    2018-02-12 10:57:37 - U00020408 position rev is 0000000000028649

    <this seems strange. My Unix says 28694. Close enough? Hm ...... note to self,
    don't trust STR_FIND_REVERSE or the character counting>

    2018-02-12 10:57:37 - U00020408 mid section is Danish languages.Chapter I. Bourgeois and
    Proletarians(1)[German Original]The history of all hitherto existing society(2) is the
    history of class struggles.Freeman and slave, patrician and plebeian, lord and serf,
    guild-master(3) and journeyman, (...) class an...

    <good, SUBSTR works beyond 1024. The result of print is, as expected, cut off at 2014>

    2018-02-12 10:57:37 - U00020408 mid section is nish languages.Chapt

    <good, SUBSTR works PROPERLY beyond 1024>

    2018-02-12 10:57:37 - U00020408 position rev on the expanded string
    is now 0000000000028674
    <well, it finds the word "Marx" in the concatenated string, so string concatenation
    beyond 1024 characters works. As for the counting, I am giving it the benefit of the
    doubt>

    2018-02-12 10:57:37 - U00020408 Are they identical? Computer says Y

    <long string equals long string after assignment of itself. No surprises here>

    2018-02-12 10:57:37 - U00020408 Original: 0000000000028784, Clone: 0000000000028784,
    Extra Bits: 0000000000028721

    <seems to work>


  • 29.  Print maximum number of data in a variable

    Posted 02-12-2018 05:37 AM
    So far Automic's answer was:

    - ...is by design...
    - ...all AE versions have this limitation...
    - recommend ideas.automic.com....

    I contradicted (as usual) mostly like carsten above (without car example):

     - how do DEV and PM think that one checks and uses Script Varas without the possibility to check its content....

    waiting for an answer...

    cheers, Wolfgang


  • 30.  Print maximum number of data in a variable

    Posted 02-26-2018 07:39 AM
    Heureka We got a Solution (Be aware: Sarcasm......)

    After internal investigation the following statements have been defined about the print limitation:

    The :Print limitation behaves according to the documentation. 
    The Vara Object is completely  independent from the  :Print function.

    Additionally: you asked how to handle longer than 1024 Vara values - you already delivered an example by using that value on command line with echo command.

    The only way to get improvements done regarding the print limitation would be to document a Product Enhancement Idea or to upvote an existing one.

    PRB00219754

    cheers, Wolfgang


  • 31.  Print maximum number of data in a variable

    Posted 02-26-2018 08:29 AM
    Not sure if :cry: over this or :trollface: (because "told you so"), but definetly also :cry:

    But thanks for clearing it up and letting us know. Alas, this is the way the world works. I had an incident where there was also a statement that something that's clearly insonsistent and a defect to me, may in fact be just an inconsistency on purpose that's simply not documented in the documentation (I do, however, still have hope of getting mine accepted as a genuine defect).

    But now I'm scared, because the documentation does not explicitly state that AE won't mine bitcoin or order pizza in my name either. So I wonder if I can rely on it not doing so by design, or if that's just something it does that's not mentioned in the documentation either :wink:


  • 32.  Print maximum number of data in a variable

    Posted 02-26-2018 09:59 AM
    Carsten Schmitz said:
     not documented in the documentation (I do, however, still have hope of getting mine accepted as a genuine defect).
    Prediction:
    In the best case its recognized as docu-defect - so docu will be changed to actual behavior :p

    And yes - you told so - I know that I am an idiot - thinking someone is going to improve anything..

    sorry for that.

    cheers, Wolfgang

    PS. of course I opened a new idea @ ideas trashcan


  • 33.  Print maximum number of data in a variable

    Posted 02-26-2018 10:02 AM
    Wolfgang Brueckler said:

    ideas trashcan
    Dibs on "Ideas Trashcan" as a band name ;)

    Also, post your link when it's up. You've got my vote.


  • 34.  Print maximum number of data in a variable

    Posted 02-26-2018 10:34 AM

    Dibs on "Ideas Trashcan" as a band name ;)

    Great. Now I so want this :(

    62rhd87jrsw4.jpghttps://us.v-cdn.net/5019921/uploads/editor/hb/62rhd87jrsw4.jpg" width="512">



    (Don't you worry Automic, all artwork used is public domain ...)



  • 35.  Print maximum number of data in a variable

    Posted 03-14-2018 09:18 AM

    Here is the link, please vote if you support my suggestion removing the 1023 character limit from :PRINT command.

     

    revert 1023 chars limit of :PRINT script command 

     

    THX Wolfgang