Focal Point
[CLOSED] Alternate Variable Assignment Syntax Issue (PROMPT)

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/247105164

June 08, 2010, 02:03 PM
ABT
[CLOSED] Alternate Variable Assignment Syntax Issue (PROMPT)
I'm not exactly sure about the whys, but it was called to my attention that a style of variable prompt/assignment that previously worked in 7.6.8 does not work in 7.6.11 (Client/Server). I am trying to determine if this is expected or an issue.

The primary user of this style of assignment/declaration is an old school mainframe Focus user who has been doing WF in later years. I find a lot of FOCUS syntax in his programs, so this may be the cause.

-PROMPT THE_DATE FROM &BEG1.Start Date (yyyymmdd). TO &END1.End Date (yyyymmdd).;


On 7.6.8, you get 2 prompts: &BEG1 and END1 with the labels 'Start Date (yyyymmdd)' and 'End Date (yyyymmdd)', respectively.

On 7.6.11, you also get the 2 prompts above and a third, 'THE_DATE'.

I was thinking the syntax might be part of a DM facility to error check that the 'start' date is less than/equal the 'End' date. My tests don't support that. I was also thinking that the third variable ('THE_DATE' in this case) might be used elsewhere in the program, it is not.

It seems to me like it is a way to make one prompt statement and collect 2 values for 2 variables. Is this a coding style that has been deprecated or have I found a bug?

- ABT

This message has been edited. Last edited by: ABT,


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
June 08, 2010, 06:14 PM
Waz
quote:
-PROMPT THE_DATE FROM &BEG1.Start Date (yyyymmdd). TO &END1.End Date (yyyymmdd).;


Also does it in 7.6.9

I would suggest, as it is a change in functionality, that you put in a case with IBI.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

June 09, 2010, 08:17 AM
ABT
Thanks Waz, I'll do that and report back the findings for all to share.

- ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
June 09, 2010, 05:24 PM
GinnyJakes
I think it's a bug. There's no ampersand so it shouldn't be prompted for. I can't wait to hear the answer.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
June 10, 2010, 05:59 AM
<JJI>
ABT,

Maybe you could use this piece code as a workaround.

 
-DEFAULT &BEG1 = '';
-DEFAULT &END1 = '';
-**************************************************************
-* Dummy parameters used to create a title in the prompt page 
-**************************************************************
-SET &P_BEG1  = &BEG1.Start Date (yyyymmdd). ;
-SET &P_&END1 = &END1.End Date (yyyymmdd).;
 


I don't think that the -PROMPT syntax is very usefull in a Win. evironment where you use the default prompting page unless you want to use it because it makes your fex more readable.

The code above does not undermine the performance even if you need to prompt the user for 10 or more varialbles and the result is the same.

Hope this helps.
June 11, 2010, 11:43 AM
ABT
IBI solution is to code prompts for 2 variables. :-( :-( :-(

Unfortunately I can't find a way to fix this problem.
The best for you is probably to use a editor tool to locate all the 'THE_DATE'
strings and try to change them all, but before you have to stop the server.


- ABT

P.S. :-( :-( :-(


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro