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
How do you submit a job for execution?
Explain dd statement in jcl?
what is use of dcb parameter in dd statement?
Explain the function of the steplib dd statement?
what happens in execution stage in job processing?
what are JCLLIB and STEPLIB in JCL?
In sms datasets, what is the function of the dd mgmtclas keyword?
What are steplib and joblib? What for they are used?
What are the 2 types of parameters in dd statement?
what JCL Procedures?
Explain in DD statement what is the use of DCB parameter?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
how to compare two datasets without using superce because output is limited to 133 bytes
How would you understand error(execution phase)?
In sms datasets, what is the function of the dd avgrec keyword?