Focal Point
Issue with WF76.

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

February 21, 2007, 07:11 AM
Cyril Joy
Issue with WF76.
The following code is generating error message in WF76 with WindowsXP:
-******************
-SET &ECHO = ALL ;
-*-DEFAULT &org_list = '';

-SET &Q = BYTVAL('''', 'I4');
-SET &QQ = BYTVAL('~', 'I4');

-SET &org_list=CTRAN(&org_list.LENGTH,&org_list,&QQ,&Q,'A&org_list.LENGTH');

-*-SET &org_list = CTRAN(&ORG_LIST.LENGTH, &ORG_LIST, &QQ, &Q, 'A&ORG_LIST.LENGTH');
-******************
Unknown error occurred. Agent on reporting server EDASERVE may have crashed. Please investigate reporting server log. We are using similar code in our fex files.

Observations:
1.If file name is changed to a shorter one (example webfocus.fex), a proper error message is displayed.
2.If the variable org_list is changed to ORG_LIST, a proper error message is displayed.
3.If default value is provided for org_list, error will be resolved.

The case is working fine with WF54. Is this happening to all?


Regards,
Cyril Joy.

WF Production 8008 on Linux.
February 21, 2007, 07:13 AM
Cyril Joy
I named the fex file as 'webfocus_issue_testing1.fex'.


Regards,
Cyril Joy.

WF Production 8008 on Linux.
February 21, 2007, 07:34 AM
Tony A
Cyril,

It works fine in 7.1.3 as well so it would appear to be a possible bug. You should raise a case with IB so they will have a look etc.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
February 21, 2007, 09:46 AM
Tom Flynn
Cyril,

I have tested in 7.6 with the code below:

-SET &ECHO = ALL ;
-SET &QT = '''';
-SET &org_list = 'TOM' | &QT | 'S' | '~' | 'LIST';

-SET &Q = BYTVAL('''', 'I4');
-SET &QQ = BYTVAL('~', 'I4');

-SET &org_list=CTRAN(&org_list.LENGTH,&org_list,&QQ,&Q,'A&org_list.LENGTH');

-*-SET &org_list = CTRAN(&ORG_LIST.LENGTH, &ORG_LIST, &QQ, &Q, 'A&ORG_LIST.LENGTH');
-TYPE &org_list
-EXIT



The output:


-SET &QT = '''';
-SET &org_list = 'TOM' | ' | 'S' | '~' | 'LIST';
-SET &Q = BYTVAL('''', 'I4');
-SET &QQ = BYTVAL('~', 'I4');
-SET &org_list=CTRAN(10,TOM'S~LIST,126,39,'A10');
-*-SET &org_list = CTRAN(&ORG_LIST.LENGTH, &ORG_LIST, &QQ, &Q, 'A&ORG_LIST.LENGTH');
-TYPE TOM'S'LIST
TOM'S'LIST
-EXIT

Your previous code, commented out, had &ORG_LIST in CAPS????
I am assuming &org_list is a passed variable; in lower case??

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe