how to use OUTREL to get the output ?

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

how to use OUTREL to get the output ?

Postby pal_ll » Sun May 10, 2015 10:34 pm

001 123456
001 111111
001 222222
001 333333

0001 12 456
0001 11 111
0001 22 222
0001 33 333

HI ALL, how to use OUTREL to get the output like above scenario ?
in the first byte + "0", and in the 7th byte = space
Posts: 4
Joined: Sat Apr 13, 2013 3:14 pm
Has thanked: 0 time
Been thanked: 0 time

Re: how to use OUTREL to get the output ?

Postby NicC » Mon May 11, 2015 4:12 am

What version of JCL are you using? I just checked the JCL Language Reference manual - link above - and OUTREL is not found.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 3026
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: how to use OUTREL to get the output ?

Postby steve-myers » Mon May 11, 2015 7:29 am

As NicC said, this is not properly a JCL question. JCL, by itself, cannnot manipulate data in any way.

More likely, it is a sort issue; I believe both DFSORT and Syncsort have an OUTREL control of some sort. Another possibility is to use IBM data set utilities. I think both the IEBGENER or IEBPTPCH utilities can be persuaded to edit your data in the way you want, though neither utility has an OUTREL control by that name.
Global moderator
Posts: 2106
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: how to use OUTREL to get the output ?

Postby BillyBoyo » Mon May 11, 2015 11:39 am

If it is SORT, there are INREC, OUTREC and OUTFIL which can do that.

  INREC BUILD=(C'0',1,6,X,8,3)

The C'...' notation is for character constants (there are other types you can look up). The X is a blank, 3X would be three blanks. There is others of those as well (see if you can find what Z does. 1,6 takes the first six from the input, and places them in the next available six from the output. 8.3 is similar.
Global moderator
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Return to JCL


  • Related topics
    Last post