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 am using a -SET command that I am trying to create a variable to be used to pass to another program the variable result and program to call, depends on a drill level indicator that is passed from different points in the program. IE if the drill is L3 then you pass certain criteria, if it is L3M it is different and so on. So i have to build this &pgmtocall variable with the appropriate information. The problem is this, I am getting an error "(FOC261) EXPRESSION IS INCOMPLETE BECAUSE AN OPERATION IS MISSING" when the drill is "GTL4M". I am thinking the length of the -SET command is too long for me to accomplish this but cannot find anywhere that says how long this command can be. I tried busting it up into 3 different -SET commands and it worked if the drill level was towards the bottom of the -SET command for instance GTL9. Any ideas???
-SET &PGMTOCALL = - IF &DRILL EQ 'L3' THEN 'FOCEXEC=kpiexp03 (DRILL=''L3'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT RGLCODE=GLCODE PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'L3M' THEN 'FOCEXEC=kpiexp03 (DRILL=''L3M'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'L3YM' THEN 'FOCEXEC=kpiexp03 (DRILL=''L3YM'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT PERIOD=''YTD_M'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'L3YV' THEN 'FOCEXEC=kpiexp03 (DRILL=''L3YV'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT PERIOD=''YTD_V'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'TL4M' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL4M'' RVP=VP PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'TL4YM' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL4YM'' RVP=VP PERIOD=''YTD_M'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'TL4YV' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL4YV'' RVP=VP PERIOD=''YTD_V'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'TL5' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL5'' RVP=VP RACCOUNTNAME=ACCOUNTNAME PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'L5M' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL5M'' RVP=VP PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'L5YM' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL5YM'' RVP=VP PERIOD=''YTD_M'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'L5YV' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL5YV'' RVP=VP PERIOD=''YTD_V'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'TL6' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL6'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT RGLCODE=GLCODE PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'TL6YM' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL6YM'' RVP=VP RMGR=MGR PERIOD=''YTD_M'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'TL6M' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL6M'' RVP=VP RMGR=MGR PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'TL6YV' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL6YV'' RVP=VP RMGR=MGR PERIOD=''YTD_V'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'TL7' THEN 'FOCEXEC=kpiexp03 (DRILL=''TL7'' RVP=VP RMGR=MGR RACCOUNTNAME=ACCOUNTNAME PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL4' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL4'' RACCOUNTNAME=ACCOUNTNAME PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL4M' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL4M'' PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL4YM' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL4YM'' PERIOD=''YTD_M'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL4YV' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL4YV'' PERIOD=''YTD_V'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL6M' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL6M'' RVP=VP RMGR=MGR PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL6YM' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL6YM'' RVP=VP RMGR=MGR PERIOD=''YTD_M'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL6YV' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL6YV'' RVP=VP RMGR=MGR PERIOD=''YTD_V'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL8' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL8'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT RGLCODE=GLCODE PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL8M' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL8M'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL8YM' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL8YM'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT PERIOD=''YTD_M'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL8YV' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL8YV'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT PERIOD=''YTD_V'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL9' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL9'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT RGLCODE=GLCODE PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL10M' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL10M'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL10YM' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL10YM'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT PERIOD=''YTD_M'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL10YV' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL10YV'' RVP=VP RMGR=MGR RPLDP=PLANT_DEPT PERIOD=''YTD_V'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE - IF &DRILL EQ 'GTL13' THEN 'FOCEXEC=kpiexp03 (DRILL=''GTL13'' RVP=VP RMGR=MGR RACCOUNTNAME=ACCOUNTNAME PERIOD=''MTH'' RPTDATE=&RPTDATE PREPORT=''PRNT''),' ELSE ''; -? &PGMTOCALLThis message has been edited. Last edited by: Kerry,
in my honest opinion this is far to complex way to get this done in fact you all the time start the same fex witht the same date var and many other vars that are the same
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
That is true Frank, however there are many places to drill from in this report that calls the report again with different drill levels(authority levels). Think of it as you can view it as a vp view, plant view, manager view, department view, account name view. All of these looks have drills on the data line as well as multi level drills on the total line to the same program/or different program to get a different view level of detail. Does that make sense. It did not make sense to create 9 different programs to accomplish this... What is your idea of an EASIER way to do this...i am all for easier.
I probably should have added that there is a print button in the upper right hand corner and this information is driving whether or not the print button shows to go to a PDF view to print from or the freeze headers look shows which is difficult to print the report. It toggles back and forth between print mode and view mode
the sending and receiving fex is the same fex in some cases. IE the program name is KPIEXP03. So you have to know the drill level (&DRILL) and the sort variables VP, MGR, Period, ACCOUNT NAME, PLANT, DEPT, GLCODE, RPTDATE, PREPORT(print mode) ETC to be able to run the report with the correct authority levels and drill information.