Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Printing &value in a report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Printing &value in a report
 Login/Join
 
Member
posted
I expect that this is an easy one.

I'm prompting the user for &variables to get the date range for the report.

I want to print the &variable in report. Please see the following code and error.

TABLE FILE F4111
PRINT
ILLITM AS 'Item'
IMDSC1 AS 'Description'
ILLOCN AS 'Location'
ILTRQT1 AS 'Qty'
ILPAID AS 'Ext Cost/Price'
ILUSER AS 'By'
ILTDAY AS 'Time'
ILRCD_CODE AS 'Reason'
ILRCD_CODE_DESC_1 AS 'Reason Desc'
ILRCD_CODE_DESC_2 AS 'Reason Desc 2'
'&Enter_Start_Date_YYYYMMDD' AS 'Reported Start Date'
'&Enter_End_Date_YYYYMMDD' AS 'Reported End Date'
BY ILDCT_CODE AS 'Trans Type'
BY ILDCT_CODE_DESC_1 AS 'Trans Desc'
BY ILDGL/MDYY AS 'Date'
BY ILDOC AS 'Document'
WHERE ILDGL GE &Enter_Start_Date_YYYYMMDD;
WHERE ILMMCU EQ ' 4333';
WHERE ILDGL LE &Enter_End_Date_YYYYMMDD;

0 ERROR AT OR NEAR LINE 14 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC003) THE FIELDNAME IS NOT RECOGNIZED: 20090631
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT

The error code shows 20090631 which is the date I entered at run time.

Thanks,
Daren

This message has been edited. Last edited by: Daren,


Web Focus 7.6.5
JDE World
 
Posts: 20 | Registered: July 29, 2008Report This Post
Member
posted Hide Post
Try in this way:

 
DEFINE FILE F4111
START_DATE /YYMD = &Enter_Start_Date_YYYYMMDD;
END_DATE /YYMD = &Enter_End_Date_YYYYMMDD;
END
-*
TABLE FILE F4111
PRINT
ILLITM AS 'Item'
IMDSC1 AS 'Description'
ILLOCN AS 'Location'
ILTRQT1 AS 'Qty'
ILPAID AS 'Ext Cost/Price'
ILUSER AS 'By'
ILTDAY AS 'Time'
ILRCD_CODE AS 'Reason'
ILRCD_CODE_DESC_1 AS 'Reason Desc'
ILRCD_CODE_DESC_2 AS 'Reason Desc 2'
START_DATE AS 'Reported Start Date'
END_DATE  AS 'Reported End Date'
......
 



FOCUS 7.2.0S1
Mainframe - MVS 390
Excel, Flat file

Italy
 
Posts: 25 | Registered: June 23, 2009Report This Post
Virtuoso
posted Hide Post
Or just put the fields in the heading, since they never change:
TABLE FILE F4111
HEADING
"Reported Start Date &Enter_Start_Date_YYYYMMDD "
"Reported End Date &Enter_End_Date_YYYYMMDD "
PRINT
ILLITM AS 'Item'
IMDSC1 AS 'Description'
ILLOCN AS 'Location'
ILTRQT1 AS 'Qty'
ILPAID AS 'Ext Cost/Price'
ILUSER AS 'By'
ILTDAY AS 'Time'
ILRCD_CODE AS 'Reason'
ILRCD_CODE_DESC_1 AS 'Reason Desc'
ILRCD_CODE_DESC_2 AS 'Reason Desc 2'
BY ILDCT_CODE AS 'Trans Type'
BY ILDCT_CODE_DESC_1 AS 'Trans Desc'
BY ILDGL/MDYY AS 'Date'
BY ILDOC AS 'Document'
WHERE ILDGL GE &Enter_Start_Date_YYYYMMDD;
WHERE ILMMCU EQ ' 4333';
WHERE ILDGL LE &Enter_End_Date_YYYYMMDD;
...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
Thanks AC1 it worked great.


Web Focus 7.6.5
JDE World
 
Posts: 20 | Registered: July 29, 2008Report This Post
Expert
posted Hide Post
Daren,

Be aware that as you are using a PRINT verb then using the DEFINEs is no real difference to using COMPUTEs. However if you use a SUM verb then using COMPUTEs will mean the temporary fields will only be created for each row of data output as opposed to DEFINEs where these are created for each row of input.

If your table is small then no big deal either, but if your table is huge then take the above into account.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Printing &value in a report

Copyright © 1996-2020 Information Builders