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
How is the record format of an output dataset specified?
What are the parameters that are used in creating a gdg?
what JCL Procedures?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
How do you submit a job for execution?
what is use of disp parameter in dd statement?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What are steplib and joblib? What for they are used?
What are s0c1, s0c4, s0c5, s0c7 and socb?
What is the significance of addrspc parameter in the exec statement?
How can the attributes of one sms dataset be copied to another dataset?
what is the use of JCL?
What does a disposition of (new,catlg,keep) for a dsn mean?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
When space is allocated for an output dataset, what units can be used?