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

How to replace low-vaues with spaces using sort


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vineetjoshi01

New User


Joined: 06 Nov 2009
Posts: 14
Location: Singapore

PostPosted: Tue Nov 10, 2009 8:21 pm
Reply with quote

Hi All,

Could you please help me to replace low-vaues with spaces using sort step. I have an input file with some low-values in it and I want to have all the low-values to be replaced with spaces. I need it very urgently. Could you please help me.

Thanks,
Vineet
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue Nov 10, 2009 9:59 pm
Reply with quote

Hi Vineet,

I am assuming you mean low-values as binary zero
Below DFSORT statements will give you desired result.

Code:

//SYSIN    DD  *                       
  OPTION COPY                           
  INREC FINDREP=(IN=X'00',OUT=X'40')   
/*                                     
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Nov 11, 2009 12:39 am
Reply with quote

Vineet,

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080
Back to top
View user's profile Send private message
vineetjoshi01

New User


Joined: 06 Nov 2009
Posts: 14
Location: Singapore

PostPosted: Wed Nov 11, 2009 8:24 am
Reply with quote

Hi All,

Thanks a lot for all the informations.... icon_biggrin.gif

Best regards,
Vineet
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Alternative of JoinKeys in SORT DFSORT/ICETOOL 2
No new posts Sort SMF records? SYNCSORT 6
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Unstring spaces in a field COBOL Programming 3
No new posts Simplify SORT CARD to combine INREC a... DFSORT/ICETOOL 6
Search our Forums:


Back to Top