How to overlay a constant value in PD format

Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL
Shambu
Posts: 5
Joined: Tue May 12, 2020 11:56 am
Skillset: Cobol jcl db2
Referer: Google

How to overlay a constant value in PD format

Postby Shambu » Mon Jun 28, 2021 11:56 pm

Could someone please tell me how to overlay a constant value, say '010' in PD format to a sortout file.
I tried but its not working.

 

Code: Select all

OUTREC OVERLAY=(1:1,3,C'010',TO=PD,LENGTH=2) 

User avatar
sergeyken
Posts: 458
Joined: Wed Jul 24, 2019 10:12 pm
Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
Referer: Internet search

Re: How to overlay a constant value in PD format

Postby sergeyken » Tue Jun 29, 2021 1:18 am

There is no such thing as “constant” when it is a field in a record of a dataset.

Use

Code: Select all

. . . OVERLAY=(1:1,3,
              +10,TO=PD,LENGTH=2)
Javas and Pythons come and go, but JCL and SORT stay forever.


  • Similar Topics
    Replies
    Views
    Last post