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] Error building dates in dialogue manager

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Error building dates in dialogue manager
 Login/Join
 
Gold member
posted
Can anyone see why I might be getting this error?

SET NODATA = 0
SET HOLDLIST=PRINTONLY
SET ASNAMES=ON
SET SHOWBLANKS = ON
SET TRACEOFF = ALL
SET TRACEON = SQLAGGR//CLIENT
SET TRACEON = SQLAGGR//CLIENT
SET TRACEUSER = ON
-RUN
-SET &EndDate = '02242011';
-SET &MSDYYMD = EDIT('02242011','$$$$9999') || '-' || EDIT('02242011','99$$$$$$') || '-01';
-SET &EDYYMD = EDIT('02242011','$$$$9999') || '-' || EDIT('02242011','99$$$$$$') || '-' || EDIT('02242011','$$99$$$$');
-SET &ENTYR = EDIT('02242011','$$$$9999');
-SET &ENTMT = EDIT('02242011','99$$$$$$');
0 ERROR AT OR NEAR LINE 18 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC295) A VALUE IS MISSING FOR: &M



Here is my code:
-SET &EndDate = '&MDYY';
-SET &MSDYYMD = EDIT('&EndDate.EVAL','$$$$9999') || '-' || EDIT('&EndDate.EVAL','99$$$$$$') || '-01';
-SET &EDYYMD = EDIT('&EndDate.EVAL','$$$$9999') || '-' || EDIT('&EndDate.EVAL','99$$$$$$') || '-' || EDIT('&EndDate.EVAL','$$99$$$$');
-SET &ENTYR = EDIT('&EndDate.EVAL','$$$$9999');
-SET &ENTMT = EDIT('&EndDate.EVAL','99$$$$$$');
-SET &ENTYRMT = '&ENTYR.EVAL' | '&ENTMT.EVAL';
-SET &FISCYR = IF '&ENTMT.EVAL' EQ '11' OR '12' THEN '&ENTYR.EVAL' ELSE ('&ENTYR.EVAL' - 1);
-SET &FISCSD = '&FISCYR.EVAL' | '-11-01';
-SET &FISCSM = EDIT('&FISCSD.EVAL','9999$$$$') | EDIT('&FISCSD.EVAL','$$$$99$$');
-SET &PENTYR = &ENTYR - 1;
-SET &PEDYYMD = '&PENTYR.EVAL' | '-' | '&ENTMT.EVAL' | '-' | EDIT('&EndDate.EVAL','$$99$$$$');
-SET &PMSDYYMD = '&PENTYR.EVAL' | '-' | '&ENTMT.EVAL' | '-01';
-SET &PFISCYR = &FISCYR - 1;
-SET &PFISCSD = '&PFISCYR.EVAL' | '-11-01';
-SET &PFISCSM = EDIT('&PFISCSD.EVAL','9999$$$$') | EDIT('&PFISCSD.EVAL','$$$$99$$');
-SET &PENTYRMT = '&PENTYR.EVAL' | '&ENTMT.EVAL';
-RUN  



I use this same logic in other procedures and it works, but I'm allowing the user to enter the date for those.

Thanks for your help.

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


WebFOCUS 7.7.03
Linux / Universe Db
HTML/PDF/EXCEL/HTML Active
 
Posts: 90 | Registered: November 03, 2009Report This Post
Platinum Member
posted Hide Post
Because the variable &EndDate has the string &MDYY in it. So &ENTMT has the string &M.
Suggest you do
-SET &EndDate = '&MDYY.EVAL';

or
-SET &EndDate = &MDYY;


Brian Suter
VP WebFOCUS Product Development
 
Posts: 200 | Location: NYC | Registered: January 02, 2007Report This Post
Gold member
posted Hide Post
WOW! Rookie mistake. That did it! Thank you so much!


WebFOCUS 7.7.03
Linux / Universe Db
HTML/PDF/EXCEL/HTML Active
 
Posts: 90 | Registered: November 03, 2009Report 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] Error building dates in dialogue manager

Copyright © 1996-2020 Information Builders