IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SyncSort to keep the out file size as same with all other


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anjani shanker

New User


Joined: 26 Jan 2007
Posts: 37
Location: USA

PostPosted: Thu Apr 23, 2009 2:08 am
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Apr 23, 2009 2:20 am
Reply with quote

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
View user's profile Send private message
anjani shanker

New User


Joined: 26 Jan 2007
Posts: 37
Location: USA

PostPosted: Thu Apr 23, 2009 2:28 am
Reply with quote

Nope, Could you please tell me where i can get the information and some dummy syntax for these?

Thanks!
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Apr 23, 2009 2:34 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Apr 23, 2009 2:45 am
Reply with quote

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
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Fri Apr 24, 2009 8:15 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top