How I sort the records in a file and copy the first 10
records to another file

Answer Posted / balasukumar

//SORTIN DD DSN=INF1
//SORTOT DD DSN=OTF
//SYSIN DD *
SORT FIELDS = COPY
SKIP=0
STOPAFT=10
/*

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the function of dd name parameter with a 2 part structure; audit.report?

899


What does a disposition of (new,catlg,keep) for a dsn mean?

617


what is a jcl?

689


In job processing, what happens in conversion stage?

744


List the different jcl statements that are not permitted in the procedures?

641






How to run cobol program using jcl?

652


what is the JCL statement consists of?

699


which parameter is use to declare the name of dataset in dd statement?

737


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

786


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:

3530


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2064


Explain about LMQUERY�give a dialog information about a data set

904


What is the use of symbol // in jcl?

930


how do you access an uncataloged dataset in a jcl?

841


What is notcat 2 - gs?

941