Hi,
My dataset have multiple records, say 100. I want to start
copy records only after a record contain a specific value
that may be in a specific position. Secondly I want to stop
copying rest records if certain record contains a specific
value. Can it be done using SORT/ICETOOL utilities?
Answer Posted / nnn
If you want to copy value of 'A' at 10 th position
SORT FIELDS=(COPY)
INCLUDE COND=(10,1,CH,EQ,C'A')
If you want to stop copy value of 'A' at 10 th position
SORT FIELDS=(COPY)
INCLUDE COND=(10,1,CH,NE,C'A')
| Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
How do you access an uncatalogued dataset in a jcl?
What is the use of symbol // in jcl?
How dummy is used in jcl?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
how to compare two datasets without using superce because output is limited to 133 bytes
Is it possible to left uncode disp? If yes, how?
How can an in-stream dataset be terminated?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
Explain the function of //cntl statement?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
List the different components of jcl statement?
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
What are the difference between jcl and jes?