As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.
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
AlThis message has been edited. Last edited by: Kerry,
WebFOCUS 7.6.9 Windows all output (Excel, HTML, PDF)
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
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