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 an A2 field that is determined by using the GETTOK command. I need the first character to be zero if the result is only one character. Any ideas?
WF 766 Win2K
Posts: 50 | Location: North Carolina | Registered: May 16, 2006
There's a formatting option of an 'L' that can be used with numeric fields which will retain leading zeroes. I use this most when I create extract files that need leading zeroes to be retained (ON TABLE HOLD AS MYFILE FORMAT ALPHA).
Here's an example using the CAR table:
DEFINE FILE CAR CNT/I2 WITH MODEL = CNT + 1; A_CNT/A2 WITH MODEL = IF CNT EQ 1 THEN '1' ELSE '2'; I_CNT/I2L WITH MODEL = EDIT(A_CNT); -* END TABLE FILE CAR PRINT CAR MODEL CNT A_CNT I_CNT WHERE RECORDLIMIT EQ 2 END
Jim
WF DevStu 5.2.6/WF Srv 5.2.4/Win NT 5.2
Posts: 118 | Location: Lincoln Nebraska | Registered: May 04, 2005