Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
File-AID - Is it possible to get the total of a column?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
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    Post subject: File-AID - Is it possible to get the total of a column?
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    Post subject: Reply to: File-AID - Is it possible to get the total of a co
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: 2442
Location: Netherlands, Amstelveen

PostPosted: Fri Mar 25, 2011 3:25 pm    Post subject:
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    Post subject:
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: 1894
Location: UK

PostPosted: Wed Apr 27, 2011 10:10 am    Post subject:
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    Post subject:
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: 2442
Location: Netherlands, Amstelveen

PostPosted: Wed Apr 27, 2011 10:30 am    Post subject:
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    Post subject:
Reply with quote

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

Global Moderator


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

PostPosted: Wed Apr 27, 2011 11:30 am    Post subject:
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    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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us