View previous topic :: View next topic
|
Author |
Message |
Barry Keogh
New User
Joined: 14 Jan 2011 Posts: 6 Location: UK
|
|
|
|
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 |
|
|
chandracdac
New User
Joined: 15 Jun 2007 Posts: 92 Location: bangalore
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Use the TALLY function. |
|
Back to top |
|
|
Jasand
New User
Joined: 23 Jan 2009 Posts: 32 Location: Tamil nadu
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
VSAM files do not have columns. DB2 tables have columns. |
|
Back to top |
|
|
Jasand
New User
Joined: 23 Jan 2009 Posts: 32 Location: Tamil nadu
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
Jasand
New User
Joined: 23 Jan 2009 Posts: 32 Location: Tamil nadu
|
|
|
|
Thank you Peter |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
You are welcome. |
|
Back to top |
|
|
|