Dynamically know the length of a variable file ?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Dynamically know the length of a variable file ?

Postby diptisaini » Tue Sep 28, 2010 3:25 pm

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.
diptisaini
 
Posts: 90
Joined: Sun Mar 14, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Dynamically know the length of a variable file ?

 

Re: Dynamically know the length of a variable file ?

Postby NicC » Tue Sep 28, 2010 3:48 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Dynamically know the length of a variable file ?

Postby diptisaini » Tue Sep 28, 2010 3:54 pm

Can you please tell me how to do that ?
diptisaini
 
Posts: 90
Joined: Sun Mar 14, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Dynamically know the length of a variable file ?

Postby Robert Sample » Tue Sep 28, 2010 4:01 pm

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: Dynamically know the length of a variable file ?

Postby diptisaini » Tue Sep 28, 2010 5:24 pm

Thanks but i have done through IKJEFT01 and its orking fine.
diptisaini
 
Posts: 90
Joined: Sun Mar 14, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post