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

File-AID how to compare two fields within the same file


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Barry Keogh

New User


Joined: 14 Jan 2011
Posts: 6
Location: UK

PostPosted: Fri Jan 14, 2011 1:07 am
Reply with quote

Hi All

I am new to File-AID and have been asked to perform the following;

compare the values for 2 separate fields within the same file and return those rows whose values for the above fields do not match.

I am able to
open the file in Fileaid using the Primary Option Menu 1.Browse option, select the file i require
select the Selection Criteria Menu 2. Formattede option

after this i do not know what steps to take

Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Jan 14, 2011 2:31 am
Reply with quote

Hello and welcome to the forum,

See if this prior topic will help:
ibmmainframes.com/viewtopic.php?t=16021
Back to top
View user's profile Send private message
Barry Keogh

New User


Joined: 14 Jan 2011
Posts: 6
Location: UK

PostPosted: Fri Jan 14, 2011 2:52 pm
Reply with quote

Thanks, but the solution provided requires that the file which contains the two fields for comparison is copied so that two files exit. I have severe restrictions on time and storage compounded with a lack of experience in File-AID, what i was hoping for was to

1. Open the file containing the two fields
2. Compare field1 with field2 with non-matching fields being returned (field1 was derived from field2 so we are hoping that the two fields match in every record).

does anyone know of an alternative method for comparing two fields within the same file without having to make a copy of the file?

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

Active Member


Joined: 01 Dec 2006
Posts: 782
Location: Pennsylvania

PostPosted: Fri Jan 14, 2011 6:49 pm
Reply with quote

Barry,

If you are not able to get what you were hoping for, are you willing to take anything you can get?

Answering the following may help obtain an alternative solution.

1) What is the lrecl of the dataset?
2) How many records are there in the dataset?
3) Can the file be opened in ISPF VIEW?
4) What sort product and level do you have?
5) What does severe restriction on time and storage mean?

I ask these questions, because there may be options with REXX, ISPF Edit macro, or Sort.

Running as a batch job may help as well.

I can not help with File-Aid, and having that as a restriction may limit things as well.
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 -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts Replace a string in a VB file and cop... DFSORT/ICETOOL 2
No new posts JCL sort card for file creation condi... DFSORT/ICETOOL 4
No new posts File Handling COBOL Programming 9
No new posts Decompress data from JMR log file Compuware & Other Tools 4
Search our Forums:

Back to Top