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

Converting LOW VALUES to SPACES


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raam_kumar

New User


Joined: 25 Apr 2007
Posts: 44
Location: chennai, India

PostPosted: Wed May 09, 2007 6:10 pm
Reply with quote

Hi
recently i have got a requirement. There are many report files which contain low-values in it. now I have to convert these low values to spaces. currently the process followed is as follows

1) open the file in edit mode
2) execute the command c all p'.' ' '
3) save the file

can this be implemented using sort. i.e. the sort card should be in such a way that without specifying the positions this has to convert all the low-values into spaces.

can any one help me?
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 May 09, 2007 9:03 pm
Reply with quote

You can use the technique discussed in the "Change all zeros in your records to spaces" Smart DFSORT Trick at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
Back to top
View user's profile Send private message
raam_kumar

New User


Joined: 25 Apr 2007
Posts: 44
Location: chennai, India

PostPosted: Thu May 10, 2007 9:54 am
Reply with quote

thank you frank it is working fine

But how do you remember all these things. it is really amazing
Back to top
View user's profile Send private message
raam_kumar

New User


Joined: 25 Apr 2007
Posts: 44
Location: chennai, India

PostPosted: Thu May 10, 2007 9:55 am
Reply with quote

friends

i just wanted to put the code so that it might be helpful for others who may need it

Code:

   SORT FIELDS=COPY               
   ALTSEQ CODE=(0040)             
   OUTREC FIELDS=(1,80,TRAN=ALTSEQ)
Back to top
View user's profile Send private message
GlobalGyan

New User


Joined: 31 Jan 2006
Posts: 28

PostPosted: Thu May 10, 2007 10:25 am
Reply with quote

Frank is the creator of ICETOOL :=)

Frank Yaeger - DFSORT Development Team (IBM) - [email protected]
Specialties: PARSE, JFY, SQZ, ICETOOL, IFTHEN, OVERLAY, Symbols, Migration
=> DFSORT/MVS is on the Web at www.ibm.com/storage/dfsort/


I wish I was one something like that :=)

GG
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: Thu May 10, 2007 8:12 pm
Reply with quote

Quote:
But how do you remember all these things


Thanks for the kind words.

I developed many of the functions in DFSORT and all of the functions in ICETOOL which means I spent a lot of time designing, coding, testing and documenting them. And I show DFSORT customers how to use these functions to solve problems every day which keeps them fresh in my mind.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts To Unstring spaces in a field COBOL Programming 3
No new posts Converting VARCHAR to XML DB2 1
No new posts IBM HPU 5.2 - Converting EBCDIC Chara... DB2 0
No new posts how to complete the end of a record w... DFSORT/ICETOOL 2
Search our Forums:


Back to Top