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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / challa srinivas

In short,INREC i used before SORT and OUTREC is used after SORT.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More JCL Interview Questions

What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

0 Answers   IBM,


can i sort packed decimal if i can tell the syntax

1 Answers   Barclays,


What is difference between Return Code, user completion code, Abend code and reason Code?

2 Answers   IBM, Satyam, Wipro,


Are there any set of rules for the names of the steps used in a job?

0 Answers  


How many parameters are there to a DISP statement and what are their uses ?

3 Answers  






I've one sequential file, that file size is LREC=100 (File contain Records like 1 to 100). Now I was increase the file size is LREC=102. My question is I want insert 00 (Two Zeros) in to the new file (That output file looks like : 00123 up to 100). How will write the SORT card in JCL. Please let me know.

2 Answers   Syntel,


When concatenating two PDS can any one PDS can have empty dataset i.e without any value(Dummy).

2 Answers  


which utility is used to sort a file in jcl?

0 Answers   IBM,


Name the system library from which modules are retrieved at execution

2 Answers  


how will be submit 1 jcl by other jcl? means that how 'll submit one job by other job??

3 Answers   Steria,


Explain the hierarchy levels in jcl?

0 Answers  


Is condition checking possible in jcl? If yes, how?

0 Answers  


Categories