comp.sys.ibm.as400.misc - IBM AS/400 miscellaneous topics.
Hi, Since some weeks ago I noticed that, while debugging a RPGLE program (STRDBG), the debugger steps "over" a CHAIN/READ operation. In other words, after a normal Step (F10) over one of these operations, the program just runs further. Only if I set a breakpoint right after them, it will stop here after a Step. I'm sure this didn't happened before. Did someone have the same "problem" By the way, we upgraded to V5R3 some time ago. Thanks in advance Sander
Hi Guys I'm getting a strange inconsistency in the results of using %EDITC to convert a numeric variable to a formatted string. Take a look at this little bit of code: dnum s 10 2 inz(12.56) dtxtval s 13 C eval txtval=%editc(num:'J') C eval *inlr=*on This does exactly what I want it to, i.e. it puts '12.56', nicely formatted, into string variable txtval. BUT, if I now change this a little, to make num and txtval passed variables, thusly: c *entry plist c parm num 10 2 c parm txtval 13 C eval txtval=%editc(dnum:'J') C eval *inlr=*on ...and call this from another prog, passing in 12.56 as a passed variable, the eval puts 12.5 into txtval, i.e. it knocks the second decimal place off the number. This is driving me nuts! Any thoughts or help any of you could offer would be VERY much appreciated! Thanks in advance Jeremy
Hello, I'm evaluating different methods to parse a xml file from rpg (future projects may require this). Atm, I'm trying to adapt SAX2PRINT with XML4PR400 from product 5733XT1 to my needs. I can't extract element names & values in the callbacks functions, for example, the callback associated to Qxml_CONTENTHANDLER_STARTELEMENT has the following prototype : PSTARTELEMENT B DSTARTELEMENT PI D URI? * VALUE D LNAME? * VALUE D QNAME? * VALUE D ATTR? * VALUE From the doc, it appears that QNAME?is a pointer to the name of the element, basing a string type field on this pointer doesn't give any coherent value. In the example code, it seems that QNAME is used thru an XMLFormatter method, is this the only way ? Last, has anyone example code to get element name in a rpg string field ? Thanks in advance Eric Masson -- Moi je dis : 3 lignes c'est suspect, c'est fait pour le GCU. -+- SP in Guide du Neuneu sur Usenet : Allez hop ! Au GNoUf -+-