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 / pkb
This can be done using SORT utility
//STEP1 exec PGM=SORT
//STEPLIB ........
.....................
//SORTIN dd DSN=INPUT.FILE
...
//SORTOUT DD DSN=OUTPUT.FILE
...
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(1:1,73,74,10)
//SYSOUT DD SYSOUT=*
THE FILE LENGTH IS CONSIDERED AS 83
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the function of job statement in jcl?
Must tape dataset definitions include vol=ser specifications?
What is the purpose of dd * statement in jcl?
in ways data can be passed to a COBOL program from JCL?
what is the use of JCL?
what sort card you will use to copy the data from one dataset to another dataset?
Can we use DISP=SHR in output file in JCL
Explain in DD statement what is the use of DCB parameter?
How to pass data to a program that is coded in an exec statement?
What do you know about jcl?
How to override loadlib?
What is jcl in mainframe?
What are the jcl procedures?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
Which statement is used to identify the private libraries in job?