Page 1 of 1

Dynamically know the length of a variable file ?

PostPosted: Tue Sep 28, 2010 3:25 pm
by diptisaini
Hi,

//step01 DD DSN=TCLAST15.B836.AUSTRCLR.ISIN.COPYB,
// DISP=(NEW,CATLG),SPACE=(CYL,(1,1),RLSE),
// DCB=(RECFM=VBA,LRECL=&&temp,BLKSIZE=&&temp)
//stepo2 DD DSN=TCLAST15.B836.AUSTRCLR.ISIN.COPYB,
// DISP=(NEW,CATLG),SPACE=(CYL,(1,1),RLSE),
// DCB=(RECFM=FB,LRECL=&&temp,BLKSIZE=&&temp)



I just need to know is there is any way to get the record length of a variable file dynamically then pass this record length to fixed format file.

Re: Dynamically know the length of a variable file ?

PostPosted: Tue Sep 28, 2010 3:48 pm
by NicC
file do not have record lengths - the records have record lengths. The record length of records in a file can be found by various means including IDCAMS.

Re: Dynamically know the length of a variable file ?

PostPosted: Tue Sep 28, 2010 3:54 pm
by diptisaini
Can you please tell me how to do that ?

Re: Dynamically know the length of a variable file ?

PostPosted: Tue Sep 28, 2010 4:01 pm
by Robert Sample
I just need to know is there is any way to get the record length of a variable file dynamically then pass this record length to fixed format file.
Not in a single job -- once the JCL has been submitted and gone through the JES converter / interpreter it cannot be changed. You can use a program (one you write yourself, or SORT or ...) to write into the internal reader a job with the appropriate DCB data.

Re: Dynamically know the length of a variable file ?

PostPosted: Tue Sep 28, 2010 5:24 pm
by diptisaini
Thanks but i have done through IKJEFT01 and its orking fine.