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
 

 

command in file-aid to

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

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Wed Dec 19, 2007 5:57 pm    Post subject: command in file-aid to
Reply with quote

Hi all,

In a file I have junk/INVLAID data now using file - aid we can change this invalid data into zeroes for numeric's..wat ever required

we can do this in file-aid using a command but could not remember can any one help me out in this.

thanks
ajay
Back to top
View user's profile Send private message

krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Wed Dec 19, 2007 6:34 pm    Post subject:
Reply with quote

what do you mean by junk/INVLAID data?
show some sample i/p and o/p records?
Back to top
View user's profile Send private message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 147
Location: Columbia, MO

PostPosted: Thu Dec 20, 2007 12:43 am    Post subject: Reply to: command in file-aid to
Reply with quote

FileAid allows you to change data - but given data - that means that you must specify exactly what is to be replaced by a given value:


Code:
$$DD01  UPDATE IF=(91,EQ,C'A90')',REPL=(91,C'B01'),PRINT=0
/*


This statement updates the file in place. Specifically, if position 91 = A90, change it to B01.

You could try using something like IF=(91,GT,X'00'),etc.

Good luck.
Back to top
View user's profile Send private message
ajayvamsi
Currently Banned

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Thu Dec 20, 2007 10:00 am    Post subject:
Reply with quote

hey it is not to execute thru JCL it can be change using LINE COMMAND I am not sure on that line command so I put the query...Please help me with the line command to change Invalid data in file-aid to zeroes...

if u open the file thru file-aid and type the command it will change all the invalid data into zeroes...for that field...


thanks
ajay
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Dec 20, 2007 10:57 am    Post subject:
Reply with quote

ajayvamsi
1. open the file in EDIT mode in your FILE-AID
2. Now give an ordinary TSO CHANGE command like this
Code:
C 1 0 ALL
in the above example all occurances of 1 would be replaced with 0's.
3. If you want to replace all 1's by o's at particular position in a file
Code:
C '1'  '0' 4 ALL
The above command will replace all occurances of 1 to 0's in the position 4.
Back to top
View user's profile Send private message
Santoshdorge

New User


Joined: 27 Jun 2006
Posts: 48
Location: Pune

PostPosted: Thu Dec 20, 2007 3:02 pm    Post subject:
Reply with quote

Hi Ajay,
I am not sure wheather you want to change only invalid occurances in particular column or whole column contains invalid values.

if the first is true then may be you need to do it in JCL or if there are only few INVALID VALUES then use

F \invalid 1 ----where 1 is first column
then change it manually to zero

and in case you want to set whole column to zero....try this
c any '0' 1 all


thanks,
Santosh
Back to top
View user's profile Send private message
ajayvamsi
Currently Banned

New User


Joined: 21 Jul 2005
Posts: 56
Location: Hyderabad

PostPosted: Fri Feb 08, 2008 2:33 pm    Post subject:
Reply with quote

THANKS for ur solutions...
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
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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