I've one sequential file, that file size is LREC=100 (File
contain Records like 1 to 100). Now I was increase the file
size is LREC=102. My question is I want insert 00 (Two
Zeros) in to the new file (That output file looks like :
00123 up to 100). How will write the SORT card in JCL.
Please let me know.
Answers were Sorted based on User's Feedback
Answer / mahesh
Hi,
Please find the JCL below
//JOBCARD
//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=INPUT-FILE,DISP=SHR(100 LENGHT)
//SORTOUT DD DSN=OUTPUT-FILE,DISP=NEW,DCB=(LRECL=102,..)
//.....
//.....
//SYSIN DD *
SORT FIELDS=COPY,
OUTREC BUILD=(1:C'00',3:1,100)
/*
Thanks & Regards,
Mahesh.
| Is This Answer Correct ? | 29 Yes | 0 No |
Answer / satish
//sysin dd *
option copy
oufil fnames=(ddname),build=(2c'0',1,100)
/*
| Is This Answer Correct ? | 1 Yes | 0 No |
What is Cataloged Procedures?
the command to open a dataset directly from the JCL instead of opening it separately using 3.4 option.
How can a stopped job be started again?
What is the DD statement for a output file?
I HAVE A SEQUENTIAL FILE CONTAINING ONE RECORD IN WHICH I HAVE ONE FIELD AS CUSTOMER IDENTITY NUMBER FIELD WHICH IS A SIGNED FIELD. HOW TO SEQUENTIALLY INCREMENT THIS FIELD USING OVERLAY PARAMETER?.
how can we merge two input files from two different jobs into one output file ? Please ans any one ASAP?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
I have Job A and Job B. I want to trigger Job B from Job A. Please advise.
What happens if both JOBLIB & STEPLIB is specified ?
What are the valid DSORG values ?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
what are the options in file-aid to edit vsam dataset and to compare data sets.