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 / lu
//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 *
OMIT COND=(44,4,CH,EQ,C'WIPO')
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Does jcl support automatic restart?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
What are the 4 fields in dd statement?
Are there any set of rules for the names of the steps used in a job? What are they?
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 we call instream to catalog and catalog to instream?
Explain the function of dd name parameter with a 2 part structure; audit.report?
Differentiate between the joblib and the steplib statements?
What are the jcl procedures?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
Is their any set of rules for dd? Explain.
what is DSN parameter and DISP parameter is used for?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
What are hierarchy levels in jcl?