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


Please Help Members By Posting Answers For Below Questions

Explain the function of dd name parameter with a 2 part structure; audit.report?

906


What is the use of disp parameter?

653


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

683


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

1933


Explain how can the attributes of one sms dataset be copied to another dataset?

709






How do you overcome this limitation ?

702


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) ?

1773


Suppose I have five jobs to do. But I want to hold one?

662


What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

1591


What are the difference between jcl and jes?

1050


What is the significance of addrspc parameter in the exec statement?

624


How jcl is used for testing batch programs?

723


What is the significance of addrspc parameter in exec statement?

735


Explain how can values be passed from the job stream to an executable program?

632


Can I share my data with other jobs? How?

672