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

File-AID - Is it possible to get the total of a column?


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: Sun Jan 30, 2011 7:46 pm
Reply with quote

Hi All

I am in file-aid examining a report. What i would like to do is get the total for a particular column, is this possible from within file-aid?
Back to top
View user's profile Send private message
chandracdac

New User


Joined: 15 Jun 2007
Posts: 92
Location: bangalore

PostPosted: Fri Mar 25, 2011 12:29 pm
Reply with quote

I think we can't do this using file Aid. FileAID is only for viewing and editing the data sets i feel.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Mar 25, 2011 3:25 pm
Reply with quote

Use the TALLY function.
Back to top
View user's profile Send private message
Jasand

New User


Joined: 23 Jan 2009
Posts: 32
Location: Tamil nadu

PostPosted: Wed Apr 27, 2011 10:03 am
Reply with quote

Peter,
I tried with TALLY for a VSAM file and was able to get the below o/p with record count, LRECL etc..
Can you please advice on how to get the TOTAL OF A PARTICULAR COLUMN ?
Is there any commands to be used with TALLY ? (specifying the column postion etc..)

Code:
LRECL=100,KEYLEN=15,NRECRDS=178,CINV=24576,MAXRBA=7372800,VOL=PRSL
 ABOVE FUNCTION ENDED ON NORMAL EOD                                       RC=0 
                                                                               
   RECORDS-READ=178   



Thank you in advance.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Apr 27, 2011 10:10 am
Reply with quote

VSAM files do not have columns. DB2 tables have columns.
Back to top
View user's profile Send private message
Jasand

New User


Joined: 23 Jan 2009
Posts: 32
Location: Tamil nadu

PostPosted: Wed Apr 27, 2011 10:13 am
Reply with quote

sorry Nic for the confusion.
I actually meant the positions.
Is it possible to specify the POSITIONS and perform COMPARE through TALLY ?

Thanks,
Jasand.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Apr 27, 2011 10:30 am
Reply with quote

Its all in the manual :

File-AID/MVS Batch Reference Manual


$$DD01 TALLY IF=(10,EQ,C’90’),ACCUM=(16,’TOTALS 1990’),
IF=(6,EQ,C’08’),IF=(10,EQ,C’90’),ACCUM=(16,’AUGUST 1990’)

This example locates any record that has a value of 90 in locations 10 and 11, and
accumulates the packed field that begins in location 16. If locations 6 and 7 contain a
value of 08, File-AID takes a second accumulation. After execution, the resulting
accumulation totals are labeled TOTALS l990 and AUGUST 1990 when printed on the
SYSTOTAL dataset.
Back to top
View user's profile Send private message
Jasand

New User


Joined: 23 Jan 2009
Posts: 32
Location: Tamil nadu

PostPosted: Wed Apr 27, 2011 11:20 am
Reply with quote

Thank you Peter
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Apr 27, 2011 11:30 am
Reply with quote

You are welcome.
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 vsam file access JCL & VSAM 1
No new posts Infosphere Optim - unable to save Col... IBM Tools 0
No new posts To Remove spaces (which is in hex for... JCL & VSAM 10
No new posts How can I select certain file dependi... JCL & VSAM 12
This topic is locked: you cannot edit posts or make replies. How can I select certain file dependi... Compuware & Other Tools 1
Search our Forums:

Back to Top