Hi, hope you can help me because I'm facing a problem never seen...
I've written a very short program in RPGLE:
If I debug the program I see the read instruction working (%eof indicator is off) BUT no value is readen from the file.
I've found out that if BEFORE the setll I set ALL the fields to a default value, than the read instruction works fine.
If I set to a default value only some fields (I've tried with the first 4 fields of the file) than the read instruction reads ONLY those 4 fields, nothing more....
Where's the problem??? Consider that I'm working on a new machine (OS 6.1) and this is new for me, but I've never seen this behaviour before....
Could anyone please help me?? This file counts 118 fileds and it's frustrating!!!!
Thanks....
I've written a very short program in RPGLE:
Code:
H DECEDIT('0,') DATEDIT(*YMD/) FCCRTM IF E K DISK * C *loval Setll CCRTM C Read CCRTM C Dow not %eof ............................ C Read CCRTM C Enddo * C Eval *inlr=*on
I've found out that if BEFORE the setll I set ALL the fields to a default value, than the read instruction works fine.
If I set to a default value only some fields (I've tried with the first 4 fields of the file) than the read instruction reads ONLY those 4 fields, nothing more....
Where's the problem??? Consider that I'm working on a new machine (OS 6.1) and this is new for me, but I've never seen this behaviour before....
Could anyone please help me?? This file counts 118 fileds and it's frustrating!!!!
Thanks....
Comment