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

syncsort blank(fill with ) out one column on a cond


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

New User


Joined: 19 Mar 2008
Posts: 1
Location: Providence

PostPosted: Mon May 19, 2008 8:34 pm
Reply with quote

I have a file containing 1.2 Million records. I need to space out (replace with blanks) i.e. x'40' on a set of columns if the value on that column is not a particular numeric value for ex 5.
Back to top
View user's profile Send private message
rajatbagga

Active User


Joined: 11 Mar 2007
Posts: 199
Location: india

PostPosted: Mon May 19, 2008 11:21 pm
Reply with quote

Hi Mohit,

Mohit Verma wrote:
to space out (replace with blanks) i.e. x'40' on a set of columns


What are the those column positions?

Mohit Verma wrote:
if the value on that column is not a particular numeric value for ex 5.


How do you identify which numeric value should be present in that column?

Its better if you can show us with an example what exactly you need...

Regards,
Rajat
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Tue May 20, 2008 12:49 am
Reply with quote

Mohit Verma,

Without knowing your record layout or format, here is a basic example that you can modify for your needs:

Code:
//SORT1 EXEC PGM=SORT         
//SORTIN DD *                 
AAAAA                         
BBBB5                         
CCCC5                         
DDDD2                         
EEEEE                         
FFFF8                         
//SORTOUT DD SYSOUT=*         
//SYSOUT DD SYSOUT=*         
//SYSIN DD *                 
 INREC IFTHEN=(WHEN=(5,1,CH,NE,C'5'),OVERLAY=(5:X'40'))   
 SORT FIELDS=COPY                                         
/*     

This is the output produced:
Code:
AAAA   
BBBB5   
CCCC5   
DDDD   
EEEE   
FFFF   


If this does not meet your needs, then please be more specific and provide sample input and output.
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts first column truncated in search result IBM Tools 13
Search our Forums:

Back to Top