Answer Posted / himanshu
Using SORT utility we can split the file. Sort card will be
as:
//SYSIN DD *
SORT FIELDS=COPY
OUTFILE FNAMES=(SORTOUT1,SORTOUT2,SORTOUT3),SPLIT
/*
If there are 10 records in input and these have to be split
across three files SORTOUT1, SORTOUT2 and SORTOUT3
respectively. After running the Job using this sort card,
record1 would be stored in SORTOUT1, record2 in SORTOUT2,
record3 in SORTOUT3, record4 in SORTOUT1 and so on.
| Is This Answer Correct ? | 18 Yes | 0 No |
Post New Answer View All Answers
Which dd parameters are required?
when can a job time-out occur? How to overcome that?
What are the 2 types of parameters in dd statement?
Can an individual step be restricted from using all the jobs allowed cpu time?
Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
What is the purpose of dd dummy statement?
How can unused space allocation be returned to the system when a dataset is closed?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
Explain the function of the steplib dd statement?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
Can I send output of job to my remote device careerride123?
How to run cobol program using jcl?
What is the function of the dd mgmtclas keyword in sms datasets?