Focal Point Banner


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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Question on FOCUS
 Login/Join
 
<beginner>
posted
I have this:

DEFINE FILE BFPROD
...
...
FLNM_PRFX/A2=SUBSTR(100,FILE_NAME,1,2,2,'A2');
-IF FLNM_PRFX EQ 'RT' THEN GOTO AAA;

SEQ/A4=SUBSTR(100,FILE_NAME,31,34,4,'A4');
NEW_F/A30=SUBSTR(100,FILE_NAME,1,30,30,'A30');
TMP_NEW_F/A30=SUBSTR(100,FILE_NAME,1,30,30,'A30');
NEW_FILE/A66= NEW_F || 'XXXX.';
TMP_NEW_FILE/A38= TMP_NEW_F || 'XXXX.';
FILE_S/A38=TMP_NEW_F || SEQ ||'.';
-GOTO CONT

-AAA
SEQ/A4=SUBSTR(100,FILE_NAME,28,31,4,'A4');
NEW_F/A27=SUBSTR(100,FILE_NAME,1,27,27,'A27');
TMP_NEW_F/A27=SUBSTR(100,FILE_NAME,1,27,27,'A27');
NEW_FILE/A66= NEW_F || 'XXXX.';
TMP_NEW_FILE/A38= TMP_NEW_F || 'XXXX.';
FILE_S/A38=TMP_NEW_F || SEQ ||'.';

-CONT
...
...


The value of FLNM_PRFX was 'RT' when I test it. Why it didn't jump to AAA???
 
Report This Post
<Grzegorz>
posted
The code:
-IF FLNM_PRFX EQ 'RT' THEN GOTO AAA;
is the same as comparing constants:
-IF 'FLNM_PRFX' EQ 'RT' THEN GOTO AAA;
The Dialogue Manager variables start with &:
-IF &FLNM_PRFX EQ 'RT' THEN GOTO AAA;
but remember that variable &FLNM_PRFX has nothing common with the DEFINEd field named FLNM_PRFX. Dialogue Manager commands (the lines started with -), are a kind of macrodefinitions, they are "generating" the pieces of FOCUS code for the final execution.

The Dialogue Manager commands are described in Chapter 10. "Managing Flow of Control ..." in the "Developing Reporting Application " manual (v 5.2).
IBI Tech Support Link

Regards
Grzegorz
 
Report This Post
<beginner>
posted
Thank you very much. Your comment is very helpful. I understand now why it didn't work.

I tried the following way:

FLNM_PRFX/A2=SUBSTR(100,FILE_NAME,1,2,2,'A2');
SEQ/A4=IF FLNM_PRFX EQ 'RT' THEN SUBSTR(100,FILE_NAME,28,31,4,'A4')
ELSE SUBSTR(100,FILE_NAME,31,34,4,'A4');
NEW_F/A30=IF FLNM_PRFX EQ 'RT' THEN SUBSTR(100,FILE_NAME,1,27,27,'A30')
ELSE SUBSTR(100,FILE_NAME,1,30,30,'A30');
TMP_NEW_F/A30=IF FLNM_PRFX EQ 'RT' THEN SUBSTR(100,FILE_NAME,1,27,27,'A30')
ELSE SUBSTR(100,FILE_NAME,1,30,30,'A30');
NEW_FILE/A66= NEW_F || 'XXXX.';
TMP_NEW_FILE/A38= TMP_NEW_F || 'XXXX.';
FILE_S/A38=TMP_NEW_F || SEQ ||'.';


I am glad this work but I am not sure if it will create any problem in the future. Hopefully not.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders