Focal Point
[CLOSED] FOC295 error

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

August 22, 2011, 10:01 AM
Al_C
[CLOSED] FOC295 error
this code:
-***************************
-* HEADER RECORD DEFINITION
-***************************
-* RECORD TYPE [3] 000 = HEADER RECORD & FILLER FOR [25] SPACES
-SET &REC_TYPE = '000 ';
-* HEADER TEXT [20] MUSE BE:GE STUDENT SUBMITTAL FOR SUBMITTAL BATCHES
-SET &HDR_TXT = 'GE STUDENT SUBMITTAL';

-* PUT THE HEADER REC TOGETHER
-* THIS LINE GENERATES AN ERROR, BUT APPEARS TPO WORK
-SET &HDR_REC = &REC_TYPE|&HDR_TXT;


-EXIT


generates this output/error:

-***************************
-* HEADER RECORD DEFINITION
-***************************
-* RECORD TYPE [3] 000 = HEADER RECORD & FILLER FOR [25] SPACES
-SET &REC_TYPE = '000 ';
-* HEADER TEXT [20] MUSE BE:GE STUDENT SUBMITTAL FOR SUBMITTAL BATCHES
-SET &HDR_TXT = 'GE STUDENT SUBMITTAL';
-* PUT THE HEADER REC TOGETHER
-* THIS LINE GENERATES AN ERROR, BUT APPEARS TPO WORK
-SET &HDR_REC = 000 GE STUDENT SUBMITTAL;
0 ERROR AT OR NEAR LINE 5 IN PROCEDURE mrheaderFOCEXEC *
(FOC295) A VALUE IS MISSING FOR: &REC_TYPE&HDR_TXT


and I have no idea why.

T^here are more fields I will need to concatenate to complete this record, but I always get an error when trying to concatenate a second amper variable. Is there a trick to combining two amper variables?

thx

Al

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


WebFOCUS 7.6.9
Windows
all output (Excel, HTML, PDF)
August 22, 2011, 10:17 AM
<FreSte>
Try this:

-SET &HDR_REC = '&REC_TYPE.EVAL&HDR_TXT.EVAL';
August 22, 2011, 10:19 AM
mgrackin
Separate the Dialogue Manager variables with a single or double dot. I cannot remember whether you need just one or two dots.

&VAR1.&VAR2 or &VAR1..&VAR2


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
August 22, 2011, 10:20 AM
MichaelBalle
The code also works if you put a space before and after the pipe:

-SET &HDR_REC = &REC_TYPE | &HDR_TXT;



WebFOCUS 7.6, 7.7
Windows, All Output formats
August 22, 2011, 05:54 PM
Waz
From my ever diminishing memory....

The concatenate without spaces used to work, pre dinosaurs.

Another case of code tightening ?

The two options that will work have been shown.

If you use a period, this indexes the variable, a double allows the two variable to be side by side without space between. This is used in -TYPE, -WRITE, DEFINEs and COMPUTEs, etc


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!

August 23, 2011, 09:15 AM
mgrackin
Waz, Thanks for the clarification. Obviously I have a diminishing memory as well since I could not remember whether it was one or two dots. Smiler


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
August 23, 2011, 05:37 PM
Waz
Thank Gerry for Focal Point, my backup memory.




Perhaps one day there will be an app for my phone. Smiler


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!

August 23, 2011, 10:55 PM
njsden
Or perhaps we just need to have a phone for the current apps to run Big Grin At least I know I will eventually have to update mine Roll Eyes



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
August 25, 2011, 09:18 PM
Jim Morrow
Every once in while the single contcat without spaces on either side would throw a "illegal use of GOTO" Once I figured out the cause of this message, I guessed it was coming from "deep down in the FORTRAN" never bothered to ask for confirmation from IBI.

Thinking about FORTRAN and WebFocus gives a hint how long I have been using (Web)Focus. The source code was been done in "C" for years and years.


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



August 25, 2011, 09:40 PM
Waz
Jim, I'm almost afraid to ask how long....

There are quite a few long timers on the forum.

I wonder how many years of experience are on the forum ??

Smiler


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!

August 25, 2011, 10:54 PM
njsden
I would dare to say that, at a minimum, EXPERIENCE/I4 would be required to represent that ... no?



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
August 25, 2011, 11:33 PM
Waz
Lucklily an I4 is stored internally as a 4 byte integer, lots of space for a large number of years.




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!