Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

File-aid modify option

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
Pyari

New User


Joined: 07 May 2008
Posts: 4
Location: Hyderabad

PostPosted: Thu May 08, 2008 3:40 pm    Post subject: File-aid modify option
Reply with quote

Hi all,

Is there any option in file-aid to modify all the records at a time?
i.e., i had around 2000 records to modify[i have to modify the entire file for a single column].

Thanks,
Pyari
Back to top
View user's profile Send private message

ksk

Active User


Joined: 08 Jun 2006
Posts: 356
Location: New York

PostPosted: Thu May 08, 2008 5:18 pm    Post subject:
Reply with quote

You can use the following option. I have tried this in ISPF panel only, not in FILE-AID.

C colomn-no 'original-value' 'to-be-changed-value' ALL

e.g., C 1 '001' '002' ALL

Where 1 is the colomn-number
001 is the original value and
002 is the to-be-changed-value

KSK
Back to top
View user's profile Send private message
Pyari

New User


Joined: 07 May 2008
Posts: 4
Location: Hyderabad

PostPosted: Thu May 08, 2008 6:01 pm    Post subject: Reply to: File-aid modify option
Reply with quote

But mine is a VSAM file
we can't modify it directly so.......
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Fri May 09, 2008 4:15 am    Post subject:
Reply with quote

Hello,

First - back up the file.

Second, using fileaid you should be able to edit the dadtaset and globally change the value you need to change.

Once you have a backup, i'd suggest creating a new, test vsam file to make sure you can do what you want with no problems/questions. Once you have verified your solution, then go ahead and schedule changing the real file.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 356
Location: New York

PostPosted: Fri May 09, 2008 10:10 am    Post subject:
Reply with quote

Pyari,

If your file is VSAM, edit it in File-Aid. This command should work in File-Aid also.
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 216
Location: India

PostPosted: Fri May 09, 2008 11:14 am    Post subject: Re: File-aid modify option
Reply with quote

Pyari wrote:
Hi all,

Is there any option in file-aid to modify all the records at a time?
i.e., i had around 2000 records to modify[i have to modify the entire file for a single column].

Thanks,
Pyari


can u provide some sample input and expected output data.
Back to top
View user's profile Send private message
Pyari

New User


Joined: 07 May 2008
Posts: 4
Location: Hyderabad

PostPosted: Fri May 09, 2008 4:29 pm    Post subject: Reply to: File-aid modify option
Reply with quote

Hi KSK/Sri_mf

I tried with that command, its working fine.
But my input looks like
90 2150
90 2150
90 2150
90 2150
90 2150

After value 90, file has some junk value.
Actually that is a comp-3 variable, and when i opend that in file-aid some junk is there in that 2spaces,

Because of that i am getting S0C7 abend, so i am passing some valid values to that field.

But my input file has 10k records, so how can i modify all those values at a time?

I tried with the command as C 3 ' ' '929' ALL
But its not working with this field
So how can i change all the junk values to valid values?
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Fri May 09, 2008 6:04 pm    Post subject: Reply to: File-aid modify option
Reply with quote

FILEAID can update VSAM files in place. You definitely want to back up your VSAM file before running the FILEAID program as Dick suggested.

Code:

//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')                               
/*                                                       


If it finds VALUE1 in position 1, it will replace the field with VALUE2.
Back to top
View user's profile Send private message
Pyari

New User


Joined: 07 May 2008
Posts: 4
Location: Hyderabad

PostPosted: Fri May 09, 2008 7:55 pm    Post subject: Reply to: File-aid modify option
Reply with quote

I will try with this code
Thanks alot for your response
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us