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 / eswaran
hi,
your dataset have 100 records then u want copy starting
position=25 to ending position=50 then y have copy following way
//FSS129A JOB
//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=NEW1.PS
//SORTOUT DD DSN=NEW2.PS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY,SKIPREC=25,STOPAFT=50
/*
//
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Explain the function of dd name parameter with a 2 part structure; audit.report?
What is the use of disp parameter?
what is use of dcb parameter in dd statement?
Explain the hierarchy levels in jcl?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
Which dd parameters are required?
What is use of restart and how to use it?
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
what sort card you will use to copy the data from one dataset to another dataset?
what are the types of abends that occur on job failure? And explain the possible causes of these
What is the use of symbol // in jcl?
What are the jcl procedures?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
Explain the function of //jcllib statement?
What is jcl in mainframe, and how many types of jcl statements are there for a job?