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 the difference between primary and secondary allocations for a dataset?

8 Answers  


What is the difference b/w the CLASS,TIME,PRTY in jcl job card.

4 Answers   Syntel,


Hi, all Suppose i have 10 step in a job (s1,s2,s3,...s10) i want to execute step9 first and then step3 and i used the DPRTY for these steps. so what will happen to other steps? Will the get executed or only these two steps get executed?

2 Answers  


a input file contains 1000 records, how to move the first 500 record into one out put file and how to move to second 500 records to anothere output file

6 Answers   ITC Infotech,


How to pass the parameter in parm using linkage section ? (syntax)?

0 Answers   Infosys,






What is the meaning of the EXEC statement keyword, COND? What is its syntax?

2 Answers  


how GDGs are concatinated?

4 Answers   HSBC,


the command to open a dataset directly from the JCL instead of opening it separately using 3.4 option.

7 Answers   IBM,


List some valid operation codes in JCL

3 Answers  


what is the meaning of keyword in jcl?what is is opposite?

4 Answers  


diff bw SB37,SD37,SE37 ?( bcz these 3 belongs Space related abends only)

4 Answers   RBS,


What is one line to pass PARM from JCL to COBOL?

0 Answers  


Categories