Write alternate record to a PS fle

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

Write alternate record to a PS fle

Postby pranav283 » Wed Sep 17, 2014 4:05 am


I want to write every alternate record from a file to another PS file.
So, in other sense it kind of means that I do not want every alternate record to be written to the o/p file.
Is it possible to perform the required action using any Utility, say IDCAMS or DFSORT.

Please let me know the solution though JCL in case I don't want to use a COBOL program.

Quick response is much appreciated.

Posts: 47
Joined: Sat Aug 30, 2014 3:52 pm
Has thanked: 2 times
Been thanked: 0 time

Re: Write alternate record to a PS fle

Postby BillyBoyo » Wed Sep 17, 2014 7:05 am

Have a look at DFSORT's SAMPLE on OUTFIL.
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