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 - 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: 2429
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: 1752
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: 2429
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: 2429
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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