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.
I have a parameter set up for my date field - NEWDATE. I keep getting the error - FOC205 THE description cannot be found for file named: Dump. Any ideas on how to fix?
Something is happening in your first request, the one that creates the DUMP file, that is causing it not to get created. That is why you are getting the error.
Now you need to figure out why the first request is failing. Got anymore error messages for us to look at?
WHERE ( TEAMNAME EQ '&TEAMNAME.(FIND TEAMNAME IN tblarch).Please Select Team.' ); WHERE NEWDATE EQ DT(&NEWDATE.(FIND NEWDATE IN DUMP).Select Date:.); ON TABLE SET PAGE-NUM OFF ON TABLE SUMMARIZE DUMP.DUMP.START DUMP.DUMP.STOP DUMP.DUMP.SCHEDULED SIGN COMPPER AS 'ROLL-UP' END
I think your problem is the date format in the first define I'm not sure if you can convert a HYYMDI format date field the way you do this. I think this is an alpha format date time field.
How does this field look if you print one?
Is it a long string like '20080112133059888999'?
If so you need an other formula that first convert this form alpha and then into a real date and time value.
I do not know these formulas without the manual.
Is it not possible to just use the nom_date as it is in your database?
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
If I do not format the Nom_Date field, it is printed as 2007/12/03 00:00. When I format it and do not use it as a parameter, I can see it as 12/03/2007 in print. I guess what I do not understand is why does it not allow me to use the new formatted date field as a parameter. This needs to be set as a parameter for reporting purposes. The original data source is off a sequel server table in which the date field in question is formatted as 12/03/2007. When I link this table to focus it changes it to the 2007/12/03 00:00 format. I do not understand why the format changed from sequel to FOCUS? Pls help
The way I read this is that this where statement uses a &variable to populate the equation. That &variable uses the dump file. Which has not yet been created at the time the request is syntax checked. Please put a -RUN after the first table request (the one that creates DUMP). This will force the creation of the file BEFORE syntax checking the rest of the code.
Hope this helps.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
I put the -Run command and it still came back with a (FOC003) Error can not find Field name NEWDATE.
Code to the -Run command. DEFINE FILE TBLARCH NEWDATE/YYMD=HDATE(NOM_DATE, 'YYMD'); END TABLE FILE TBLARCH SUM START SCHEDULED SIGNED_IN COMPLIANCE STOP FULLNAME TEAMNAME EMP_SHORT_NAME NEWDATE BY LUCENT ON TABLE NOTOTAL ON TABLE HOLD AS DUMP ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ TYPE=REPORT, GRID=OFF, FONT='TIMES NEW ROMAN', SIZE=10, $ TYPE=REPORT, COLUMN=N1, WRAP=8.000000, $ ENDSTYLE END -Run
It works fine in the print stage. But as soon as I add a where clause it goes goofy telling me the FOC003 message that it can not find newdate.
DEFINE FILE TBLARCH NEWDATE/YYMD=HDATE(NOM_DATE, 'YYMD'); END TABLE FILE TBLARCH WHERE NEWDATE NE '&NEWDATE.(FIND NEWDATE IN TBLARCH).Date.'; PRINT START STOP NEWDATE ON TABLE NOTOTAL ON TABLE SET HTMLCSS ON END
If you right-click and view source on the page that gives you the error, you might see if you have an error related to your define for NEWDATE. Fix that and your problem might go away.
Also during debugging print both NEWDATE and NOM_DATE till NEWDATE looks like it is supposed to then add the WHERE clause.
Also, you might want to take the quotes off &NEWDATE. The field NEWDATE is a smart date and by definition numeric.
I made the date display as MDYY. Now, when I use the GUI's where function to make NEWDATE a variable field for parameter web querying I receive three error's: 0 error at or near line 6 in Procedure adhocrq; (FOC003) - NEWDATE not recognized.
Code:
DEFINE FILE TBLARCH NEWDATE/MDYY=HDATE(NOM_DATE, 'MDYY'); END TABLE FILE TBLARCH WHERE NEWDATE NE '&NEWDATE.(FIND NEWDATE IN TBLARCH).Date.'; PRINT START STOP NEWDATE WHERE RECORDLIMIT EQ 5 ON TABLE NOTOTAL ON TABLE SET HTMLCSS ON END
Your problem is that NEWDATE only exists in the define within your program. When the FIND is executed it doesn't use the define within your program so you would be better off having the NEWDATE specified within your master file OR your could perform a table of TBLARCH post define to provide all the dates, something like this -
DEFINE FILE TBLARCH
NEWDATE/MDYY=HDATE(NOM_DATE, 'MDYY');
END
TABLE FILE TBLARCH
BY NEWDATE
ON TABLE HOLD AS MYDATES
END
-RUN
TABLE FILE TBLARCH
WHERE NEWDATE NE '&NEWDATE.(FIND NEWDATE IN MYDATES).Date.';
PRINT START
STOP
NEWDATE
WHERE RECORDLIMIT EQ 5
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
END
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, 2004
If I'm correct in assuming that you have autoprompt enabled, then this field NEWDATE is very much unknown at the time it is being referenced. That also explains why -RUN's doe not seem to have any effect. Since it concerns an unknown variable, it will be asked for by the autoprompt facility. But this facility does not know of the define, will not execute it, and concerns itself only with the master file. As far as I can see, there is just one way around this and that is to put the define into your master file. That way the autoprompt facility will recognize the field. If you disable the autoprompt facility, you will receive another message, stating that &NEWDATE is missing, so that is not a workaround, unless you provide another means of populating the variable, possibly using a self-created html-file.
Hope this helps.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007