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.
I am reading a file into an amper vaiable that consists of one decimal formatted field. I am getting a syntax error on reading the field. A snippet of the code and the error is below. I may be overlooking something.
TABLE FILE MDM_READINGS
PRINT MIN_KW_DEM
BY LOWEST 1 MIN_KW_DEM NOPRINT
WHERE AMI_METER_ID EQ '&METER';
WHERE d_st_date_cvte_hmdyy GE '&ST_DT';
WHERE d_end_date_cvte_hmdyy LE '&END_DT';
WHERE CHANNEL EQ '&KW_CHANNEL';
WHERE UNIT_OF_MEASURE CONTAINS 'KWH';
WHERE MIN_KW_DEM GT &MIN_KW_THRSH;
ON TABLE SAVE AS HOLDA FORMAT ALPHA
END
-RUN
-SET &MIN_KW_DEM = '';
-BEGIN
-READ HOLDA &MIN_KW_DEM.D20.2.
-TYPE &MIN_KW_DEM
-DONE
-EXIT
Error: 0 NUMBER OF RECORDS IN TABLE= 30 LINES= 1 0 ERROR AT OR NEAR LINE 86 IN PROCEDURE ADHOCRQ (FOC224) SYNTAX ERROR: D12 ------------------------vvv -READ HOLDA &MIN_KW_DEM.D12.2.This message has been edited. Last edited by: FP Mod Chuck,
WF 8.1.05 Windows SQL Server 2014 HTML, PDF, EXCEL
Yeah, I normally have more luck with -READFILE also. I had already tried it and I really get the same error:
0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1 ALPHANUMERIC RECORD NAMED HOLDA 0 FIELDNAME ALIAS FORMAT LENGTH MIN_KW_DEM D12.2 12 RNK$$00102 I6 6 TOTAL 18 1 0 NUMBER OF RECORDS IN TABLE= 30 LINES= 1 0 ERROR AT OR NEAR LINE 86 IN PROCEDURE ADHOCRQ (FOC224) SYNTAX ERROR: &MIN_KW_DEM ----------------vvvvvvvvvvv -READFILE HOLDA &MIN_KW_DEM
WF 8.1.05 Windows SQL Server 2014 HTML, PDF, EXCEL
MartinY - I tried using the actual syntax you posted and it worked. I have it below. Thanks for your help and thanks to the other individuals for helping out on this thread.
TABLE FILE MDM_READINGS PRINT MIN_KW_DEM BY LOWEST 1 MIN_KW_DEM NOPRINT WHERE AMI_METER_ID EQ '&METER'; WHERE d_st_date_cvte_hmdyy GE '&ST_DT'; WHERE d_end_date_cvte_hmdyy LE '&END_DT'; WHERE CHANNEL EQ '&KW_CHANNEL'; WHERE UNIT_OF_MEASURE CONTAINS 'KWH'; WHERE MIN_KW_DEM GT &MIN_KW_THRSH; ON TABLE HOLD AS HOLDA END -RUN
[Solved]Originally posted by AMC: I am reading a file into an amper vaiable that consists of one decimal formatted field. I am getting a syntax error on reading the field. A snippet of the code and the error is below. I may be overlooking something.
TABLE FILE MDM_READINGS
PRINT MIN_KW_DEM
BY LOWEST 1 MIN_KW_DEM NOPRINT
WHERE AMI_METER_ID EQ '&METER';
WHERE d_st_date_cvte_hmdyy GE '&ST_DT';
WHERE d_end_date_cvte_hmdyy LE '&END_DT';
WHERE CHANNEL EQ '&KW_CHANNEL';
WHERE UNIT_OF_MEASURE CONTAINS 'KWH';
WHERE MIN_KW_DEM GT &MIN_KW_THRSH;
ON TABLE SAVE AS HOLDA FORMAT ALPHA
END
-RUN
-SET &MIN_KW_DEM = '';
-BEGIN
-READ HOLDA &MIN_KW_DEM.D20.2.
-TYPE &MIN_KW_DEM
-DONE
-EXIT
Error: 0 NUMBER OF RECORDS IN TABLE= 30 LINES= 1 0 ERROR AT OR NEAR LINE 86 IN PROCEDURE ADHOCRQ (FOC224) SYNTAX ERROR: D12 ------------------------vvv -READ HOLDA &MIN_KW_DEM.D12.2.[/QUOTE]
WF 8.1.05 Windows SQL Server 2014 HTML, PDF, EXCEL