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
What are the parameters that are used in creating a gdg?
Explain the purpose of dd dummy statement?
Explain the function of //jcllib statement?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
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 ?
What is the purpose of the dd keylen parameter?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
Explain dd statement in jcl?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
What does a disposition of (new,catlg,keep) for a dsn mean?
What is the use of symbol // in jcl?
what is the purpose of coding notify parameter in job statement?
What are hierarchy levels in jcl?
What is the syntax of JCL statement?