how to split a file

Answer Posted / kalpana

Using the sort card we can split the file.
//SYSIN DD *
SORT FIELDS=COPY,SKIPREC=56910,STOPAFT=25
/*
SKIPREC means how many records we need to skip and STOPAFT
means how many records we need to put in the
file.

Is This Answer Correct ?    5 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is use of disp parameter in dd statement?

652


how you can access an uncataloged dataset in a JCL?

644


I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK

1477


What are steplib and joblib? What for they are used?

681


Is there any command to check wether the ps file is in sorted order?

2421






how can you check if a file is empty using jcl?

802


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

5055


Brief description of inline procedure of jcl.

674


What are the jcl procedures?

640


Which dd parameters are required?

681


Mention the types of job control statements?

678


what is use of dcb parameter in dd statement?

765


How does jcl act on code(if you take a cobol program)?

701


which utility is used to sort a file in jcl?

740


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

703