zos5415
New User
Joined: 29 Aug 2008 Posts: 18 Location: China
|
|
|
|
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 ! |
|