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.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
We are attempting to read a comma delimited file with a SUFFIX=COM master. All works well until the data in the record pushes out to column 145 or beyond. When that happens, we get this message:
(FOC416) MORE VALUES SUPPLIED THAN FIELDS IN THE MASTER FILE DESCRIPTION
If we then break the record into two records, with no data in 145 or beyond, everything works fine again.
Is 144 the record length limit for this kind of file? Is there any way around it?
Are you using TABLE, MODIFY or what? What kind of quotation mark have you in your file?
Supposing you are using TABLE FILE and a double quotation mark in your file, you must set PCOMMA to ON (PCOMMA more information). See the following example:
TABLE FILE CAR SUM SALES BY COUNTRY BY CAR BY MODEL ON TABLE HOLD AS EXAMPLE FORMAT COM END -RUN
-* Without PCOMMA, we also get FOC416. SET PCOMMA = ON
TABLE FILE EXAMPLE PRINT * END -RUN I hope this helps. (elsewhere more information would be necessary)
Regards, MikelThis message has been edited. Last edited by: <Mabel>,
We are using this in TABLE and there are no quotes in the records; just numbers, decimal points, and the comma delimiters. As I said, the file is read perfectly if, when length of data is 145 or more, we split the data into two records. Splitting means two physical records with less than 145 characters in each with the $ at the end of the data in the second record.
We can also simply delete digits from the numbers to pull the data back to column 144 (not actually deleting one of the numbers). The TABLE also works fine with the shortened record.
Thank you very much for your suggestions. The file I am using has an LRECL of 400 bytes, most of which are blank. It looks like we are running different versions of Focus. I am running Focus 7.1.1 under MVS on an IBM mainframe. When I run your code, I get:
> ERROR AT OR NEAR LINE 13 IN PROCEDURE TEMP1 FOCEXEC (FOC160) THE OPTION AFTER THE WORD 'FORMAT' IS INVALID: COM BYPASSING TO END OF COMMAND (FOC009) INCOMPLETE REQUEST STATEMENT
I not only do not have a COM output option, I do not have PCOMMA as a settable control. I thought IBI had eliminated differences between the various platforms. I guess not.
TABLE FILE CAR PRINT SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES SALES IF RECORDLIMIT EQ 5 ON TABLE SAVE AS OUTF FORMAT LOTUS END -RUN 2.- After, append the final ,$ (mandatory in 7.1.1) manually or using a dialogue manager loop and using the following master: