Hi,
I want to modify column value in a VSAM file using file-aid. There are moer than 100K records in teh file. And I have to modify the entire file for a particular value, can I do that using file-aid.
Thanks,
Modify column value in VSAM using file-aid.
- Anuj Dhawan
- Founder
- Posts: 2816
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Modify column value in VSAM using file-aid.
Hi,
If you want do it in batch, following job should help you:
If you want to do it online, it's pretty straight forward - C ALL 'old value' 'new value' should also do. (unless you are working with packed decimal)
If you want do it in batch, following job should help you:
Code: Select all
//FILEAID EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//DD01 DD DISP=SHR,DSN=INPUT.VSAM.FILE
//SYSIN DD *
$$DD01 UPDATE IF=(1,EQ,C'VALUE1'),
REPL=(1,C'VALUE2')
/*
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute