How to continue the focus statement in the next line???
Hi all I get error stating continuation mismatch when i continue typing the continuation statement in the next line.
Do any one help me out how to continue writing a statements continuation in the next line.
I am using FOCUS 7.1 & 7.6.
I get this error in 7.1, please help me out.
Focus Core 7.1.1 & 7.6.4 XP MainFrames
May 22, 2008, 01:41 AM
FrankDutch
would you be so kind to post an example?
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
May 22, 2008, 02:08 AM
Tony A
Are you sure that you are using the syntax as stated in the manual?
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
May 22, 2008, 02:39 AM
Danny-SRL
RB,
Is the statement Dialog Manager? DEFINE? TABLE? MODIFY?
As Frank said, post the code and the error number. When you post the code be sure to put it between code tags (the last icon on the Message ribbon).
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
May 22, 2008, 05:28 AM
GamP
A code example would be helpful indeed. There are at least two areas in which continuation on the next line might be a bit tricky. The first is in stylesheets, when defining a drilldown. If you're in the part where the parameters are being defined, you need to continue to the next line using a \ character. The other area is Dialog manager. There you will need to start your continuation line with a dash and a space (so '- ') otherwise things will go awry.
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
May 22, 2008, 06:20 AM
rb4u
Hi all Thanks for your reply. Here is the code.
Example:
EX TBRMLS2 DIV='08,09,11,12,13,14,18,1A, 1B,1C,1D,1E,1L,1M','1N,1O,1P,1Q', The second line is the continuation of the first line.
How to make the line continuous? Is there any syntax to make a line continuously following the previous line??
What is the continuation syntax tobe used for the above code?
Please help me out.
Focus Core 7.1.1 & 7.6.4 XP MainFrames
May 22, 2008, 06:46 AM
Danny-SRL
RB,
quote:
EX TBRMLS2 DIV='08,09,11,12,13,14,18,1A, 1B,1C,1D,1E,1L,1M','1N,1O,1P,1Q',
Please note that you have one parameter DIV then one value which start with '08 and finishes with 1M' on another line. Then you have a second parameter (nameless so it is assigned to &1 in your focexec) which starts with '1N and ends with 1Q'. Then you have a comma which announces a third parameter but nothing appears. So, you have many problems. What do you want to assign to DIV? If everything put all the values on one line between quotes. If not, then define more parameters. In anycase do not leave a dangling comma. I hope this helps.
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
May 22, 2008, 07:21 AM
GamP
RB,
Tested this with the following code:
EX TESTPASS DIV='01,02,03,04,05,06,07,08,09,11,12,13,14,15,16,17,18,1A,1B,1C,1D,
1E,1L,1M',
1='1N,1O,1P,1Q',
2='this is just something to see what happens'
and it just works fine wihout any error in my environment. It may be of course that core focus 7.3 reacts a little bit different, I ran it on webfocus 713 on os/390. Anyway, the continuation of these commands is, as you did, to put a comma at the end of the line. This should allow you to continue on to the next line.
Hope this helps...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
May 22, 2008, 11:33 AM
ira
ok dangling comma is a no no. next is your inbtent to have hive &div contain 14 values, while &1 contain only 4? try placing all 14 on line enclosed in quotes, and &1 on a separate line with the 4 values enclsoed in quotes. g'luck. Ira
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
May 23, 2008, 06:09 AM
rb4u
HI FRANK,
WHEN I USE YOUR CODE I GET THE BELOW ERROR,
-SET &DIV1='08,09,11,12,13,14,18,1A,1B,1C,1D,1E,1F,1L,1M,1N,1O,1P,1Q'; -SET &DIV2=',1R,1S,1T,1U,22,30,31,33,37,38,3A,3H,3L,3M,3N,3O'; -SET &DIV3=',42,44,46,47,48,4Q,4R,51,52,53,54,58,61,63,67'; -SET &DIV4=',7Q,RA,SA,SB,SC,SD'; ERROR AT OR NEAR LINE 35 IN PROCEDURE TBRMLS FOCEXEC (FOC285) SUBSTITUTED LINE IN FOCEXEC TRUNCATED: -SET &DIV5='08,09,11,12,13,14,18,1A,1B,1C,1D,1E,1F,1L,1M,1N,1O,1P,1Q|,1R,1S,1 ,1U,22,30,31,33,37,38,3A,3H,3L,3M,3N,3O||&DIV4.EVAL'; ERROR AT OR NEAR LINE 35 IN PROCEDURE TBRMLS FOCEXEC (FOC285) SUBSTITUTED LINE IN FOCEXEC TRUNCATED: -SET &DIV5='08,09,11,12,13,14,18,1A,1B,1C,1D,1E,1F,1L,1M,1N,1O,1P,1Q|,1R,1S,1 ,1U,22,30,31,33,37,38,3A,3H,3L,3M,3N,3O|,42,44,46,47,48,4Q,|'; -SET &DIV5='08,09,11,12,13,14,18,1A,1B,1C,1D,1E,1F,1L,1M,1N,1O,1P,1Q|,1R,1S,1T,1 ERROR AT OR NEAR LINE 36 IN PROCEDURE TBRMLS FOCEXEC (FOC257) MISSING QUOTE MARKS: '08,09,11,12,13,14,1
HOW TO SOLVE THIS?? PLEASE HELP.
Focus Core 7.1.1 & 7.6.4 XP MainFrames
May 23, 2008, 07:01 AM
rb4u
HI ALL
THE VALUE FOR THE DIV IS SUBSTITUTED WITH THE VALUE 08 ALONE OTHER VALUES ARE BEING OMITTED... WHY THIS THING HAPPENS...
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
May 23, 2008, 10:20 AM
ira
RB4U - Investigating the manual would be beneficial to you. How how to continue a line in dm for a &var is:
-SET &DIV1 = X,Y,Z,A,B,C - D,E,F,G,H,I,J,K'; NOTICE: I placed a closing quote before the semi colon (you must have matching quotes!) if you want more than 2 lines just make sure that each subsequent line starts off with a hyphen followed by a space. When you are all done enter a ';' and as Danny suggested. do a -type after your -set and a -run to insure that part of the code works before going on. ira aix 533 wf 537/533 windows (76)
This message has been edited. Last edited by: Waz,
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
May 26, 2008, 01:50 AM
rb4u
Hi all I tried all sort of code what u all have specified but still i get error FOC285/FOC281/FOC303 etc. I didnot get the solution till now.
The following code is used and executed fine in FOCUS 7.6.4 but thros error stating the continuation problem in FOCUS 7.1.1.
OFFLINE CLOSE DYNAM FREE FILE OFFLINE DYNAM ALLOC FILE OFFLINE DATASET TBR.TODEC.TBRMLS04 OLD EX TBRMLS2, DIV='08,09,11,12,13,14,18,1A,1B,1C,1D,1E,1F,1L,1M,1N,1O,1P,1Q', DIV2='1R,1S,1T,1U,22,30,31,33,37,38,3A,3H,3L,3M,3N,3O,42,44,46,47,48', DIV3='4Q,4R,51,52,53,54,58,61,63,67,7Q,RA,SA,SB,SC,SD' -RUN -*
Please help me out to solve this problem
Thanks.
Focus Core 7.1.1 & 7.6.4 XP MainFrames
May 26, 2008, 02:48 AM
FrankDutch
I do not know what TBRMLS2 does, but if that FEX has some amper fields that need to be filled by the numbers you adress on the next line I suppose you should add "&" before the "DIV" and you end your line 5 and 6 with a comma.
I would recommend to read all the previous made comments. Try them all on a simplified example (with CAR) and if that does not work show us the complete code. And Please!!!! put your codes between [ code] and [ /code] so it is readable.
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
May 26, 2008, 07:27 AM
Danny-SRL
RB,
Could you please create a new focexec, call it MYTRY in which you have:
EX MYTRY DIV1='08,09,11,12,13,14,18,1A,1B,1C,1D,1E,1F,1L,1M,1N,1O,1P,1Q,',
DIV2='1R,1S,1T,1U,22,30,31,33,37,38,3A,3H,3L,3M,3N,3O,42,44,46,47,48,',
DIV3='4Q,4R,51,52,53,54,58,61,63,67,7Q,RA,SA,SB,SC,SD'
If you still get the same error messages, post the output of the echo.
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
May 26, 2008, 05:57 PM
Waz
Are these two lines or one and is there a space between TBRMLS2 and the comma ?
quote:
EX TBRMLS2, DIV='08,09,11,12,13,14,18,1A,1B,1C,1D,1E,1F,1L,1M,1N,1O,1P,1Q',
The syntax should be
EX FEX VAR=val, etc
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
May 27, 2008, 10:10 AM
ira
-SET &DIV1 = 'X,Y,Z,A,B,C, - D,E,F,G, - H,I,J,K'; -TYPE The value for DIV1 is: &DIV1
single quote before the 1st value and before the semi-colon. any line following the original should have a - in column 1 or 2 followed by a space for each continued line.