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


Please Help Members By Posting Answers For Below Questions

What are the parameters that are used in creating a gdg?

739


Explain the purpose of dd dummy statement?

671


Explain the function of //jcllib statement?

703


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

709


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 ?

9217






What is the purpose of the dd keylen parameter?

724


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?

829


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5061


Explain dd statement in jcl?

642


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

669


What does a disposition of (new,catlg,keep) for a dsn mean?

617


What is the use of symbol // in jcl?

922


what is the purpose of coding notify parameter in job statement?

683


What are hierarchy levels in jcl?

953


What is the syntax of JCL statement?

694