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

What are some jcl statements that are not allowed in procedures?

948


define cond parameter in jcl?

981


Explain dd statement in jcl?

837


Explain how can values be passed from the job stream to an executable program?

810


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

966






Is acct parameter mandatory?

919


what is the resolution for sb37 error

8307


What is the function of //cntl statement?

1041


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

934


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

855


When output dataset space is required, what quantity categories are used?

1073


Why include statement is used in a jcl?

881


How does jcl act on a cobol code?

833


what is the JCL statement consists of?

881


What is the syntax of JCL statement?

890