can anyone explain me about sort in jcl with inrec and
outrec ?

Answer Posted / madhu s reddy

.
.
//SYSIN DD *
INREC FIELDS=(5,10,15,2,23,4)
SORT FIELDS=(11,3,ZD,A)
OUTREC FIELDS=(1,10)
/*
.
.

INREC option is used to select the part(s) of record from
input file for sorting(ie, vertical split of records).

OUTREC option is used to select the part(s) of record from
sort file and is copied into output file.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

917


Is it possible to code instream data in a PROC?

855


Explain how can the attributes of one sms dataset be copied to another dataset?

822


Name the statement which can be used to send data to another mvs jes3 node?

697


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1903






I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1455


What is the purpose of the dd keylen parameter?

820


How do you access an uncatalogued dataset in a jcl?

817


What dd statement is used to supply the name of a dataset?

909


Explain the purpose of dd dummy statement?

781


i want to store 20 digits . how will u do it in cobol ?

960


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?

706


What is NOTCAT ?

842


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

849


What is the purpose of disp parameter?

728