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
in ways data can be passed to a COBOL program from JCL?
What are the 4 fields in dd statement?
How does jcl act on a cobol code?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
what is the purpose of coding notify parameter in job statement?
Explain the function of job statement in jcl?
what is the use of JCL?
Can I share my data with other jobs? How?
how can the same proc be re-used and called by many jobs?
What do you understand by the term job time – out and how can you overcome that?
How do you access an uncatalogued dataset in a jcl?
Is their any set of rules for dd? Explain.
Explain the job statement in jcl?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
What does a disposition of (new,catlg,keep) for a dsn mean?