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 want to create a dynamic default setting in my prompts fo date values. this issue is brought up before, but I was trying this:
-* File datumcreatie.fex
FILEDEF DATUMS DISK baseapp/datumwaarden.fex
SET HOLDLIST=PRINTONLY
DEFINE FILE CAR
D1/YYMD WITH COUNTRY=DATEMOV('&YYMD','EOM');
D2/YYMD WITH COUNTRY=DATEMOV('&YYMD','BOM')-1;
D3/YYMD WITH COUNTRY=DATEMOV(D2,'BOM')-1;
END
TABLE FILE CAR
PRINT
COUNTRY NOPRINT
HEADING
"-DEFAULT &|PRODATUM1= <D2 ;"
"-DEFAULT &|PRODATUM2= <D3 ;"
FOOTING
""
WHERE COUNTRY EQ 'ITALY';
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SAVE AS DATUMS FORMAT WP
END
This code seems to work, but my output file is not as it should be.
Looks rather good, but the spaces in front of the dash is giving me some trouble. Any other idea based on this would be helpfull.This message has been edited. Last edited by: Kerry,
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
Not necessarily simpler but would this option work perhaps?
-* File datumcreatie.fex
FILEDEF DATUMS DISK baseapp/datumwaarden.fex
SET HOLDLIST=PRINTONLY
DEFINE FILE CAR
D1/YYMD WITH COUNTRY=DATEMOV('&YYMD','EOM');
D2/YYMD WITH COUNTRY=DATEMOV('&YYMD','BOM')-1;
D3/YYMD WITH COUNTRY=DATEMOV(D2,'BOM')-1;
-*
-* Define as many dates as needed based on DATE_SQ
DATE_SQ/I4 WITH COUNTRY = DATE_SQ + 1;
DEF_DATE/A32 = IF DATE_SQ EQ 1 THEN '-DEFAULT &|PRODATUM1 = ' | DATECVT(D2, 'YYMD', 'A8YYMD') | ';' ELSE
IF DATE_SQ EQ 2 THEN '-DEFAULT &|PRODATUM2 = ' | DATECVT(D3, 'YYMD', 'A8YYMD') | ';' ELSE ' ';
END
TABLE FILE CAR
PRINT
COUNTRY NOPRINT
DEF_DATE
WHERE RECORDLIMIT EQ 2
ON TABLE SAVE AS DATUMS FORMAT ALPHA
END
It gets around the formatting issue (the unwanted page number and leading blanks).
You may define as many dates as you need by tweaking DEF_DATE and RECORDLIMIT provided the supporting table (CAR in this case) has as many available records; otherwise McGyver can come to the rescue
- Neftali.This message has been edited. Last edited by: njsden,