View previous topic :: View next topic
|
Author |
Message |
anjani shanker
New User
Joined: 26 Jan 2007 Posts: 37 Location: USA
|
|
|
|
Hi,
Here is a scenarion i need to deal with :
I have a file with size 75 bytes. I got to change the 6th-9th byte to a values XXXX depending on the value in 12th - 13th byte. I mean i want byte 6,7,8,9 to have XXXX if the value in 12,13 byte have "AA" or "AB".I need to keep the out file size as same with all other values as same as well.
Thanks,
Anjani |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Have you looked at IFTHEN and OVERLAY?
SyncSort for z/OS 1.3 Programmer’s Guide wrote: |
The IFTHEN parameter employs conditional logic, which enables you to reformat your records based on specified criteria. |
And then wrote: |
The OVERLAY parameter enables you to change particular columns and add fields to the end of a record without rebuilding the entire record. |
|
|
Back to top |
|
|
anjani shanker
New User
Joined: 26 Jan 2007 Posts: 37 Location: USA
|
|
|
|
Nope, Could you please tell me where i can get the information and some dummy syntax for these?
Thanks! |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
anjani shanker wrote: |
Nope, Could you please tell me where i can get the information and some dummy syntax for these? |
The SyncSort for z/OS 1.3 Programmer’s Guide....
As Alissa Margulies says, contact SyncSort Mainframe Product Services at 201-930-8260 or zos_tech@syncsort.com. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You might also try the forum SEARCH function (in the JCL section) and look for similar requirements that have been accomplished with Syncsort. . . |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
Anjani,
Until you can get your hands on a manual, try these control statements:
Code: |
//SYSIN DD *
SORT FIELDS=COPY
OUTREC IFTHEN=(WHEN=(12,2,CH,EQ,L(C'AA',C'AB')),
OVERLAY=(6:C'XXXX')) |
|
|
Back to top |
|
|
|