Thanks in advance for your reply.
Jay
Jay Pillai wrote:
> Is there a limit how big a file, rexx can read?. <snip>
Isaac Yassin
"execio * diskr indd (stem file. finis"
do i = 1 to file.0
/* some file processing done here and written to output
file */
End
Jay
/* Rexx */
arg heapsize Tr_parm
If Tr_parm <> '' then /* Set
debugging option if requested */
do;trace_on=1;Tr_stmt='TRACE 'Tr_parm;interpret Tr_stmt;end
else trace_on = 0
if heapsize = '' | heapsize = '.' then
heapsize = 1000 /* set default
heapsize if nulled or not supplied */
curr_line = 1;done = 0; j=0 /* initialize looping vars.
*/
do until done
"execio "heapsize" diskr ttlin" curr_line" (stem ttlin."
if rc = 2 then done = 1
do i = 1 to ttlin.0
up_name = translate(substr(ttlin.i,9,210))
outrec.i = overlay(up_name,ttlin.i,221,210)
end /* end do ttlin loop */
if trace_on then interpret Tr_stmt /* Debugging code */
drop ttlin.
outrec.0 = i - 1
"execio" outrec.0 "diskw outrec (stem outrec."
say writing Outrec.0 records
curr_line = curr_line + ttlin.0
end /* end outer loop */
"execio 0 diskw outrec (finis"
David Seibert
Compuware Corporation File-AID Product Architect
Dave.S...@Compuware.com
rcode = 0
do Until rcode <> 0
"execio 5000 diskr indd (stem file."
rcode = rc
do i = 1 to file.0
/* some file processing done here and written to output file */
End
End
"execio 0 diskr indd (finis"
Thomas Berg
Jay Pillai skrev:
n = 5000
Do Forever
"execio" n "diskr indd (stem file."
eof? = rc=2
do i = 1 to file.0
/* some file processing done here and written to output file
*/
End
If eof? Then Leave
End
"execio 0 diskr indd (finis"
"ALLOC F(XXXX) DA("DSN") SHR"
CALL GET_RECORDS
DO WHILE FILE.0 > 0
DO XX = 1 TO FILE.0
CALL DO_WORK FILE.XX
END
CALL GET_RECORDS
END
"EXECIO 0 DISKR XXXX (FINIS"
"FREE F(XXXX)"
EXIT
GET_RECORDS:
"EXECIO 10000 DISKR XXXX(STEM FILE."
RETURN
DO_WORK: PROCEDURE
PARSE ARG RECORD
/* PROCESS YOU RECORD HERE !!!! */
SAY RECORD
RETURN
Mark Gozzard
Mailto:mark.g...@eds.com
-----Original Message-----
From: Jay Pillai [mailto:Jay_P...@SWISSRE.COM]
Sent: 13 December 2000 23:43
To: TSO-...@VM.MARIST.EDU
Subject: REXX file read limit