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.
---ddbaemp.fex--- -*new file FILEDEF JOBS DISK jobs.ftm -RUN SET &ECHO=ALL; -SET &&Emptitle = 'Employee ID';
TABLE FILE JOBLIST PRINT JOBLIST.JOBSEG.JOBDESC JOBLIST.JOBSEG.JOBCLASS WHERE JOBDESC CONTAINS '&CTR'; ON TABLE NOTOTAL ON TABLE HOLD AS JOBS END
---dbatest.fex--- -SET &ECHO=ALL; -SET &CTR = IF &CNT EQ 1 THEN '2ND' - ELSE '3RD'; SET USER = &UID;
TABLE FILE JOBLIST PRINT JOBLIST.JOBSEG.JOBDESC JOBLIST.JOBSEG.JOBCLASS WHERE JOBDESC CONTAINS '&CTR'; ON TABLE NOTOTAL ON TABLE HOLD AS JOBS END
TABLE FILE EMPDATA "User is &UID " " " "USER1 -- Can't see Salary, reject request" "USER2 -- Can see Sales and Marketing departments only" "USER3 --can't see Salary, will be blanked out" "HR1 -- Can see salaries from 20 TO 35 K " "HR2 -- Can see everyone " "HR3 -- Can see Part Time only " " " PRINT &CNT &CTR PIN SALARY DEPT EMP_TYPE ON TABLE SET PAGE NOPAGE ON TABLE SET STYLE * TYPE=REPORT, GRID=OFF, FONT=ARIAL,$ END
When I run the dbatest fex I get the following regardless of the value of the CNT and UID variables:
-SET &CTR = IF 1 EQ 1 THEN '2ND' - ELSE '3RD'; SET USER = 1; TABLE FILE JOBLIST PRINT JOBLIST.JOBSEG.JOBDESC JOBLIST.JOBSEG.JOBCLASS WHERE JOBDESC CONTAINS '2ND'; ON TABLE NOTOTAL ON TABLE HOLD AS JOBS END TABLE FILE EMPDATA "User is 1 " " " "USER1 -- Can't see Salary, reject request" "USER2 -- Can see Sales and Marketing departments only" "USER3 --can't see Salary, will be blanked out" "HR1 -- Can see salaries from 20 TO 35 K " "HR2 -- Can see everyone " "HR3 -- Can see Part Time only " " " PRINT 1 2ND PIN SALARY DEPT EMP_TYPE ON TABLE SET PAGE NOPAGE ON TABLE SET STYLE * TYPE=REPORT, GRID=OFF, FONT=ARIAL,$ END 0 NUMBER OF RECORDS IN TABLE= 2 LINES= 2 0 ERROR AT OR NEAR LINE 11 IN PROCEDURE DDBAEMP FOCEXEC * (FOC295) A VALUE IS MISSING FOR: &CTR
I am not sure what I am doing wrong I expected the CTR variable to be available in the profile as is the case with most fex(es). BTW, I am a complete FOCUS newbie!
Thanks in advance!
WebFocus 7.7.04 and Dev studio 7703This message has been edited. Last edited by: Kerry,