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
When space is allocated for an output dataset, what units can be used?
How would you understand error(execution phase)?
What is multithreading in jcl?
What is the use of disp parameter?
What is catelog procedure and how many catelog procedure to use in one job?
Explain the function of the dd dcb keyword?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
When output dataset space is required, what quantity categories are used?
How to do automated restart when a job abend?
What is the purpose of dd dummy statement?
what is DSN parameter and DISP parameter is used for?
how can you check if a file is empty using jcl?
How dummy is used in jcl?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
How to submit a jcl from cics?