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

Use CA File Master to update VSAM file


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
zos5415

New User


Joined: 29 Aug 2008
Posts: 18
Location: China

PostPosted: Mon Nov 16, 2009 11:53 am
Reply with quote

Hi,Guys,

I want update a vsam file through FM of CA.

Here I want if postion 12 have value of c'xx' , the postion 28 value will be updated to c'yy'.

how can i do ?

The change command of CA seems just can update in the same position.

Code:

//PARML2   EXEC PGM=CAWABATC,REGION=2M                         
//SYSPRINT DD   SYSOUT=*                                       
//SYSLIST  DD   SYSOUT=*                                       
//SYSTOTAL DD   SYSOUT=*                                                           
//SYSUT1   DD   DISP=OLD,DSN=VSAM.FILE   
//SYSIN    DD   *                                             
   UPDATE ,                                                   
     SELRECIF(12,2,EQ,C'XX'),                               
     CHANGE(28:C'YY')    ==> which command can be used ????                                       


Thank you !
Back to top
View user's profile Send private message
zos5415

New User


Joined: 29 Aug 2008
Posts: 18
Location: China

PostPosted: Wed Nov 18, 2009 3:02 pm
Reply with quote

o, i find the way .

Quote:

CHANGE(28:C'YY') ==> which command can be used ????


Code:

REPLACE(28,C'YY')    ==> THIS CAN BE USED TO UPDATE LOCATION OF 28 .
                                       
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Nov 18, 2009 9:49 pm
Reply with quote

Thank you for posting the solution icon_smile.gif

d
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top