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 force complete

2 Answers   IBM,


what r the types of job control statements?

2 Answers  


is there any utility for restarting a particular step in jcl reply soon ?

5 Answers  


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The DISP in the JCL is SHR and the program opens the file in EXTEND mode. What happens ?

3 Answers  


How can we execute only one step in a job

22 Answers   MAHINDRA, Mind Tree, Tech Mahindra,






On the DD statement, what is the main difference between creating a new sequential flat file and a partitioned dataset?

2 Answers  


when can a job time-out occur? How to overcome that?

0 Answers   IBM,


What is a GDG? Why do we go for a GDG ? utility used to create GDG?

3 Answers   Xansa,


In My job I have 15 procs.and in each proc i have 3 steps. i want to execute 3 step in proc 10.is it possible? if possible how?

2 Answers   HP,


Can we delete the data using IEFBR14 , IEBGENER??

5 Answers   Kanbay,


what is the control cards?

3 Answers  


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

0 Answers  


Categories