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

To replace low values by spaces using ICETOOL


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

New User


Joined: 16 Nov 2006
Posts: 10

PostPosted: Fri Nov 24, 2006 4:40 pm
Reply with quote

Is there a way to take a large file and replace all low values from the file with spaces instead ( using icetool/dfsort plz)
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Fri Nov 24, 2006 5:22 pm
Reply with quote

Hi,
Yes you can do this by using ALTSEQ in sort.

Code:

//STEP1   EXEC  PGM=SORT             
//SYSOUT   DD SYSOUT=*               
//SORTIN   DD DSN=INPUTFILE, 
//            DISP=SHR               
//SORTOUT  DD DSN=OUTPUTFILE, 
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=SYSDA,
//            SPACE=(TRK,(1,1),RLSE) 
//SYSIN DD *                         
  OPTION COPY                         
  ALTSEQ CODE=(0040)                 
  OUTREC FIELDS=(1,RECORDLENGTH,TRAN=ALTSEQ)   
/*                 


change the recordlength based on your file. For details
see
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/3.4?DT=20050222160456

Hope it helps!
Back to top
View user's profile Send private message
fuadk84

New User


Joined: 16 Nov 2006
Posts: 10

PostPosted: Fri Nov 24, 2006 6:16 pm
Reply with quote

Thnk you.... i tried de same but stil
am left with one or two low values in the ps...
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Nov 24, 2006 6:39 pm
Reply with quote

Maybe Frank might have an answer, but it's 5am for him now.... icon_eek.gif
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: Fri Nov 24, 2006 9:56 pm
Reply with quote

fuadk84,

The technique shown above will do what you want for an FB file. If the input file has RECFM=FB and all of the X'00' values were not changed to X'40' values, then I can only guess that you did not set the recordlength in the OUTREC statement correctly. If the input file has RECFM=VB, then you need this OUTREC statement:

Code:

  OUTREC FIELDS=(1,4,5,TRAN=ALTSEQ)


For more details, see the "Change all zeros in your records to spaces" Smart DFSORT Trick at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

If that doesn't help, then you need to tell me the RECFM and LRECL of your input file, show me the job you used, and give me an example of an input record and output record where all of the X'00' values were not changed to X'40' values.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Shift left VB record without x00 endi... DFSORT/ICETOOL 11
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top