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

Inspect Functionality using Syncsort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Thu Sep 11, 2008 3:09 am
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: 496
Location: USA

PostPosted: Tue Sep 16, 2008 9:44 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts File matching functionality in Easytr... DFSORT/ICETOOL 14
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts Can you tell me what functionality yo... CLIST & REXX 28
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
Search our Forums:

Back to Top