I've one sequential file, That file contains millians of
Junk & CHAR recoreds example
File 1
,,,,,...,,,.....,.,.INFOSYS.....,,,,,,,,,,,WIPRO...........,
,...,..,.
My questions is : I want omit the 44th posstion to 4 CHAR
(WIPRO) remaining things I want output file (including Junk
CHAR also)...
How can we slove this problem & give me a syntax.
Please provide the result as soon as possible.
Answer Posted / vs kumar
HI LU,
YOU HAVE MISSED THE SORT FIELDS = COPY
I HAVE CORRECTED IT. PLEASE LET ME KNOW IF I AM WRONG
//EXAMP JOB A400,PROGRAMMER
//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=INP1,DISP=old
//SORTOUT DD DSN=OUTPUT,DISP=(,PASS),UNIT=3390,
// SPACE=(CYL,(5,1)),DCB=(LRECL=??)
//SYSIN DD *
SORT FIELDS = COPY
OMIT COND=(44,4,CH,EQ,C'WIPO')
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
what is the JCL statement consists of?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
Can I share my data with other jobs? How?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
When space is allocated for an output dataset, what units can be used?
Explain how can a jobs execution priority be modified?
List the different jcl statements that are not permitted in the procedures?
What does a disposition of (MOD,DELETE,DELETE) mean ?
what is use of space parameter in dd statement?
how do you access an uncataloged dataset in a jcl?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
What are the utility programs in jcl?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
What is jcl in mainframe?