July 11, 2008, 02:11 PM
PrarieOh...Ginny you beat me to it.
| In Focus since 1993. WebFOCUS 7.7.03 Win 2003 |
July 11, 2008, 02:26 PM
GinnyJakesYes, buy you had better directions.
Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
July 11, 2008, 02:31 PM
kittenI have to get more info from the sys admin. Here's my code:
TABLE FILE AS_RESIDENTIAL_LIFE
SUM
Name
BLDG_DESC_ROOM AS 'Building'
ROOM_NUMBER AS 'Room No.'
MSCD_DESC AS 'Meal Plan'
AWARD_TERM_ACCEPT_AMOUNT AS 'Accept Amount'
COMPUTE CNTR/D12 = CNTR + 1; NOPRINT
BY Name NOPRINT
BY TERM_CODE_KEY AS 'Term'
BY ID
HEADING
""
FOOTING
""
ON TABLE SUBFOOT
"
WHERE ( MEAL_PLAN_IND EQ 'Y' ) OR ( HOUSING_IND EQ 'Y' );
WHERE TERM_CODE_KEY EQ '&TERM_CODE_KEY.Term Code.';
WHERE AWARD_TERM_PAID_AMOUNT EQ MISSING;
WHERE AWARD_TERM_ACCEPT_AMOUNT NE MISSING;
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &WFFMT.(,,,,,).Select type of display output.
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
July 11, 2008, 02:37 PM
kittenOOPS!!!! Here's the rest:
"
WHERE ( MEAL_PLAN_IND EQ 'Y' ) OR ( HOUSING_IND EQ 'Y' );
WHERE TERM_CODE_KEY EQ '&TERM_CODE_KEY.Term Code.';
WHERE AWARD_TERM_PAID_AMOUNT EQ MISSING;
WHERE AWARD_TERM_ACCEPT_AMOUNT NE MISSING;
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &WFFMT.(,,,,,).Select type of display output.
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
July 11, 2008, 02:39 PM
GinnyJakesKitten, good start on your signature.
Now to the code. If you are going to sort by name and term, you will get more than one line per name. And I'm not sure what the CNTR is for. And summing on alpha fields is not generally a good idea. You only get the last one in a group. Here is an alternative, which I can't test of course.
TABLE FILE AS_RESIDENTIAL_LIFE
SUM AWARD_TERM_ACCEPT_AMOUNT AS 'Accept Amount'
BY Name
PRINT
BLDG_DESC_ROOM AS 'Building'
ROOM_NUMBER AS 'Room No.'
MSCD_DESC AS 'Meal Plan'
BY Name
BY TERM_CODE_KEY AS 'Term'
BY ID
ON TABLE SET BYDISPLAY ON
ON TABLE SUBFOOT
END
This is called a multi-verb request.
Let us know if that helps you at all.
Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
July 11, 2008, 02:53 PM
kittenI took the by off of the term because there is only one term. The CNTR gives a total of the number of people in this query. I took the sum off of the alph fields. I did it in painter...it's running now....takes forever these are very large views.
WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
July 11, 2008, 03:21 PM
kittenI tried making the changes you suggested in painter and it didn't work. I guess I'll try adding the code. I'm no good at the code don't know what should stay or go.
WebFOCUS 7.6.2, MS Windows Server/______, Excel, PDF, HTML
July 11, 2008, 04:31 PM
GinnyJakesYou put a NOPRINT on the CNTR field so it wasn't obvious that you needed it.
You can do a multi-verb request in the Report Painter but it is a bit tricky.
Paste the code I provided in the text editor and run it to see if it is doing what you want. Then if it is, open it in the painter and do your styling.
Good luck!
Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google