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 / srinivas yadav
//SYSIN DD *
SORT FIELDS = COPY
EXCLUDE=(44,4,CH,EQ,C'WIPR')
/*
//
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of the dd keylen parameter?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
Why block size is multiple of lrecl in jcl?
what are the types of abends that occur on job failure? And explain the possible causes of these
What is the function of job statement in jcl?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
Explain the function of a dd statement?
What parameter of the job statement is used to limit the cpu time consumed by the job?
How can the disposition of sysout datasets be set for an entire jobstream?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
in ways data can be passed to a COBOL program from JCL?
what operation is performed by job statement?
Matching Logic in Jcl not in cobol.Could any one please answer this question
How does jcl act on a cobol code?
How does jcl act on code(if you take a cobol program)?