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


Please Help Members By Posting Answers For Below Questions

Name a few IBM utility programs, and explain its function.

4424


What dd statement is used to supply the name of a dataset?

768


What is the purpose of the dd keylen parameter?

710


Is condition checking possible in jcl?

707


which utility is used to sort a file in jcl?

739






Explain how can the disposition of sysout datasets be set for an entire jobstream?

627


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1742


Mention the types of job control statements?

678


What is the function of the dd dcb keyword?

814


how you can access an uncataloged dataset in a JCL?

644


What is the difference between run mode and addressing mode?

625


Is it possible to left uncode disp?

704


Is condition checking possible in jcl? If yes, how?

727


What is the purpose of dd dummy statement?

935


Name what parameter directs the output of the job log dataset?

551