how to convert fb to vb in jcl ?

Answer Posted / deepak gairola

The JCL

SORT FIELDS=COPY
INCLUDE COND=(60,2,CH,EQ,C'AN',
OR,60,3,CH,EQ,C'ANI')
SUM FIELDS=NONE
OUTFIL FNAMES=FB1,FTOV,OUTREC=(31,19)

If you want to convert to VB to FB use parameter VTOF...

The another method for this is using convert parameter..

This is VB to FB

//S4SORT EXEC
PGM=SORT
//SORTIN DD DSN=INPUT.VARIABLE.FILE,DISP=SHR
<=Variable input
//SORTOUT DD DSN=OUTPUT.FIXED.FILE, <===== Fixed output
// DISP=
(NEW,CATLG,DELETE),
// UNIT=(SYSDA),SPACE=(TRK,(50,15),RLSE),
// DCB=
(RECFM=FB,LRECL=80,BLKSIZE=27920)
//SYSOUT DD
SYSOUT=*
//SYSIN DD
*
INREC FIELDS=
(1:1,4,

6:6,74)
SORT FIELDS=
(62,8,CH,A)
OUTFIL OUTREC=
(1:1,4,

6:6,74,
80:C' '),CONVERT

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why block size is multiple of lrecl in jcl?

908


define cond parameter in jcl?

771


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

811


what is SOC4 error?

734


can any one plzzzzzz tell the jcl code for creating ps using idcams

10509






What do you understand by the term notcat 2 – gs?

751


List the various advantages of using jcl language?

852


Explain about LMQUERY�give a dialog information about a data set

898


what is “Cond= even” and “Cond=only”?

737


What happens if both JOBLIB & STEPLIB is specified ?

606


Explain how can an in-stream dataset be terminated?

697


what operation is performed by job statement?

657


What is the function of the dd mgmtclas keyword in sms datasets?

730


when does a dataset go uncataloged?

828


Explain the function of //jcllib statement?

700