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
 
Syncsort to replace Non-Displayable data

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

New User


Joined: 02 Sep 2006
Posts: 31
Location: Mumbai

PostPosted: Wed Aug 12, 2009 5:46 pm    Post subject: Syncsort to replace Non-Displayable data
Reply with quote

How to replace non-displayable data (Find P'.') with spaces in a sequential file.

I dont know the position of data, it can appear anywhere in the file.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8657
Location: Back in jolly old England

PostPosted: Wed Aug 12, 2009 5:49 pm    Post subject:
Reply with quote

Without knowing the original format of the data how can you even think to reconstruct it.
Back to top
View user's profile Send private message
prasadplease

New User


Joined: 02 Sep 2006
Posts: 31
Location: Mumbai

PostPosted: Wed Aug 12, 2009 5:54 pm    Post subject:
Reply with quote

The field is alphanumeric having numeric data.
But some records in the file have junk/non-displayable data.

I create a report from this file using sort.
As a result, junk data (if any) is also copied into the report.

I am thinking of passing the report thru a sort step which will simply replace all junk with spaces.

I dunno if this approach will work, but i have 2 try.
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: Wed Aug 12, 2009 9:35 pm    Post subject:
Reply with quote

Hello,

Have you done the research to learn which "junk" values need to be replaced?

If there is only 1 or just a few, you might use ALTSEQ to change these to spaces.
Back to top
View user's profile Send private message
prasadplease

New User


Joined: 02 Sep 2006
Posts: 31
Location: Mumbai

PostPosted: Thu Aug 13, 2009 12:26 pm    Post subject:
Reply with quote

Thanks Dick....

I replaced the junk/non-displayable data from the file with spaces using ALTSEQ

Code:

//SYSIN DD *
SORT FIELDS=COPY
ALTSEQ CODE=(0040)
OUTREC FIELDS=(1,525,TRAN=ALTSEQ)
/*
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 Aug 13, 2009 7:45 pm    Post subject: Reply to: Syncsort to replace Non-Displayable data
Reply with quote

You're welcome - good to hear it worked - thanks for letting us know icon_smile.gif

However, it would be far better to correct the code that generates the bad data rather than wasting system resources to fix it later - fwiw.

d
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 3270 Data stream error Benchwarmer CICS 6 Tue Apr 17, 2018 12:06 am
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am

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