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

change a column from one character to another character.


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

New User


Joined: 17 Sep 2003
Posts: 16

PostPosted: Wed Apr 26, 2006 10:53 am
Reply with quote

hi,
I have a VSAM file in which the column 63 is value: 0 or 1 or 2 or 3.
Now, I want to change all the records in this file with 63 column are set to '1' where the 63 column values '0' now.
I.E. if there is a record in which the 63 column is '0', then change the record into '1' and other columns are kept unchanged.

Could ICEMAN do this job?
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Apr 26, 2006 3:24 pm
Reply with quote

You can use this DFSORT/ICETOOL job:

Code:
//S0P0 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=VSAM.FILE.NAME
//T1 DD DSN=&&T1,UNIT=SYSDA,SPACE=(CYL,(5,5)),DISP=(,PASS)
//OUT DD DSN=VSAM.FILE.NAME
//TOOLIN DD *
COPY FROM(IN) TO(T1) VSAMTYPE(F) USING(CTL1)
COPY FROM(T1) TO(OUT)
/*
//CTL1CNTL DD *
   OUTREC IFTHEN=(WHEN=(63,1,EQ,C'0'),OVERLAY=(63:C'1'))
/*


Regards,
Priyesh.
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 Compare the member of two pds on las... DFSORT/ICETOOL 13
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts ISPF Table to add a new column TSO/ISPF 1
No new posts Help with C character vs C string All Other Mainframe Topics 3
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
Search our Forums:


Back to Top