Posted by Bob A on August 19, 2013 at 10:13:09:
been trying since Friday to debug why my user buffer was getting stepped on.... and I think I've got part of the story.
Had a program which was running for some time, compiled under C/16 and executed under C/16.... but..... had to make some changes, so (following my own protocol), compiled as C/32 and tested under C/32
dumped the 2 character field in the ENTERed program... should be either "@0000@" or "@FFFF@" and it is
unfortunately after the EXIT, DocMgr flashes the spool file from the ENTERed program..... when I close it.... I look at what's in the user buffer back in the main program (after the EXIT):
C:\Documents and Settings\Administrator\Local Settings
which looks like the start of the $(CATEMP) location
what cost me time was that I wrote 2 short programs to try to reproduce the error, but because they didn't have any flavour of spooling, they came thru just fine each time.
so I tried one with PRINT (#) DataElement and one with WRITE(#,FormatWithDataElement)... trying to mix different combinations... they all yielded the same result.
I can't put the INPUT (#) DataElement any closer than the next line after the ENTER.... and, this very code always worked with QSPOOL
Thanx to one and all!
Post a Followup
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.