Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Inspect Functionality using Syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kart__0987

New User


Joined: 18 Jul 2006
Posts: 5

PostPosted: Thu Sep 11, 2008 12:22 am    Post subject: Inspect Functionality using Syncsort
Reply with quote

Hi,
I need to replace all Zeroes with Blanks in a file . The Problem is that the field is 14 bytes long and may contain Zeroes in any of the 14 positions and i need to leave the Non Zero positions intact . I know that i can do using the Inspect Verb in a Cobol program but wanted to know if this was possible using Syncsort


Thanks
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 Sep 11, 2008 3:09 am    Post subject:
Reply with quote

Hello,

Yes, you should be able to do what you want using ALTSEQ.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Tue Sep 16, 2008 9:44 pm    Post subject:
Reply with quote

As Dick suggested, here is sample code that will change ALL binary zeros to spaces:
Code:
//SYSIN DD *
   SORT FIELDS=COPY                   
   ALTSEQ CODE=(0040)                 
   OUTREC FIELDS=(1,80,TRAN=ALTSEQ)   
/*   
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
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us