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
what are JCLLIB and STEPLIB in JCL?
Suppose I have five jobs to do. But I want to hold one?
Is their any limit for data sets?
Does jcl support automatic restart?
Define concatenating?
List the various advantages of using jcl language?
What is the significance of addrspc parameter in exec statement?
whats the diff bw the evaluate also and and?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
what operation is performed by job statement?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
What statement can be used to send data to another mvs jes3 node?
Explain the purpose of dd * statement in jcl?
How to override loadlib?