Interview Questions   Tutorials   Discussions   Programs   

JCL - What do you mean by inrec and outrec ?

asked mar August 6, 2014 01:40 PM  

What do you mean by inrec and outrec ?


1 Answers

answered By Mswami   0  
The INREC & OUTREC statements : These statements are used to reformat the records.

The INREC statement is used before sort to shorten the records by eliminating unwanted fields. This results in faster sorting.

The OUTREC statement is used after the sort to improve readability.

INREC & OUTREC have identical formats:

INREC FIELDS=(nX,position,length,align,...)

OUTREC FIELDS=(nX,position,length,align,...)

The first sub parameter,nX,is optional; it specifies the no. of spaces to be inserted in the reformatted record.
The next two parameters, position & length, specify the field in the input record.
The third sub parameter, align, is optional; the possible values being H, F, and D specify alignment on a half-word, full-word, and double-word boundary respectively.

   add comment

Your answer

Join with account you already have



 Write A Tutorials
Online-Classroom Classes

  1 person following this question

  Question tags

jcl × 1

Asked 1 year and 1 month ago ago
Number of Views -208
Number of Answers -1
Last updated
2 years and 2 months ago ago

Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!