Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] FOC295 error
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] FOC295 error
 Login/Join
 
Member
posted
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)
 
Posts: 28 | Registered: April 27, 2010Reply With QuoteReport This Post
<FreSte>
posted
Try this:

-SET &HDR_REC = '&REC_TYPE.EVAL&HDR_TXT.EVAL';
 
Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
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.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6272 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Reply With QuoteReport This Post
Expert
posted Hide Post
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.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6272 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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.
 
Posts: 1533 | Registered: August 12, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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



 
Posts: 129 | Registered: June 01, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
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.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6272 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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.
 
Posts: 1533 | Registered: August 12, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
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.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6272 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] FOC295 error

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.