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
What dd statement is used to supply the name of a dataset?
Mention the types of job control statements?
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?
Explain the function of dd disp parameter?
Explain about LMFREE�free data set from its association with data ID
Explain how can the attributes of one sms dataset be copied to another dataset?
How to override loadlib?
What is the format of comment statement?
Can we use DISP=SHR in output file in JCL
how would you create a temporary dataset? And where will you use them?
Is condition checking possible in jcl? If yes, how?
What is catelog procedure and how many catelog procedure to use in one job?
What is job control language?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
How does jcl specify the job to the operating system?