How I sort the records in a file and copy the first 10
records to another file
Answer Posted / srinivasa yadav
//sysin dd *
sort fields=(starting postion,length,data-type,order)
skip rec=0
stop rec=10
/*
and also we can use file-aid tool. in file-aid
there is an option 3.3
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How can return codes be tested before execution of a job step?
i want to store 20 digits . how will u do it in cobol ?
What is the purpose of dd dummy statement?
When output dataset space is required, what quantity categories are used?
What is the significance of addrspc parameter in exec statement?
how do you code a null statement?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
What are the jcl procedures?
Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:
How to pass the parameter in parm using linkage section ? (syntax)?
What is the function of job statement in jcl?
how you can direct the data to spool using SYSOUT option?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
What are hierarchy levels in jcl?