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 dd name parameter with a 2 part structure; audit.report?
How to pass data to a program that is coded in an exec statement?
What do you understand by the term notcat 2 – gs?
How jcl is used for testing batch programs?
How do you create a temporary dataset?
Is it possible to left uncode disp? If yes, how?
Is it possible to left uncode disp?
Explain how can return codes be tested before execution of a job step?
Explain in DD statement what is the use of DCB parameter?
Give the syntax of job specifying jcl statement.
What is job control language?
what are the types of abends that occur on job failure? And explain the possible causes of these
which utility is used to run a cobol-db2 program?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
How do you submit a job for execution?