Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SyncSort to keep the out file size as same with all other
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: 2150
Location: At my coffee table

PostPosted: Thu Apr 23, 2009 2:20 am    Post subject:
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    Post subject: Reply to: SyncSort
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: 2150
Location: At my coffee table

PostPosted: Thu Apr 23, 2009 2:34 am    Post subject: Re: Reply to: SyncSort
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

Site Director


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

PostPosted: Thu Apr 23, 2009 2:45 am    Post subject:
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: 500
Location: USA

PostPosted: Fri Apr 24, 2009 8:15 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us