
Reply to comment
Reply
Click the +1 button below to share it with your friends and colleagues
Share this if you liked it!
Click the +1 button below to share it with your friends and colleagues
t-decoration:none;text-underline:none'>IBM DB2 Certification
LOGOUT
Number of Registered users 713
|
Haven't tried this myself so not sure if it will work!
FILE SECTION.
FD REPORT-FILE
RECORD IS VARYING IN SIZE FROM 1 TO 10000
DEPENDING ON REPORT-SIZE.
01 REPORT-RECORD PIC X(10000).
WORKING-STORAGE SECTION.
77 REPORT-SIZE PIC 9(4) COMP-5.
After reading the record you could examine the contents of the field in working storage called REPORT-SIZE and it will hopefully contain the record length!