Interview Questions   Tutorials   Discussions   Programs   

JCL - How to convert variable block to fixed block?




815
views
asked mar September 8, 2014 11:07 AM  

How to convert variable block to fixed block?


           

1 Answers



 
answered By Mswami   0  

We can convert VB input dataset into FB output dataset using OUTFILÂ’s VTOF parameter.

Example JCL is below:

//MXA0270 JOB A007,PROGRAMMER
//STEP010 EXEC PGM=SORT
//SYSOUT  DD SYSOUT=*
//SORTIN  DD DSN=A123456.VBIN,DISP=SHR
//SORTOUT DD DSN=A123456.FBOUT,DISP=(NEW,CATLG,DELETE),
//           UNIT=3390,SPACE=(CYL,(5,5))
//SYSIN DD *
  OPTION COPY
  OUTFIL FNAMES=SORTOUT,VTOF,OUTREC=(5,100)
/*
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert