What is the syntax to read fields from a hold file consisting of format P15.2?
I have code like this
DEFINE FILE XX
D_HLDBK_AMT /P15.2M = HDBK_AMT;
D_ADVNC /P15.2M = CLM_ADV_AMT;
END
TABLE FILE XX
SUM
D_HLDBK_AMT
D_ADVNC
WHERE STAT NE 'CN'
ON TABLE HOLD AS HTOTAL FORMAT FOCUS
END
-RUN
-READ &T_HLDBK_AMT.P15 &T_ADVNC.P15
-TYPE T_HLDBK_AMT (&T_HLDBK_AMT)
-TYPE T_ADVNC (&T_ADVNC)
I am getting the error
(FOC295) A VALUE IS MISSING FOR: T_HLDBK_AMT
I can't for the life of me figure out the correct syntax....do I need FORMAT FOCUS, or something else?
Should the -READ use format P15 or something else? Are other commas or decimals required in the -READ line??
Your assistance is appreciated!!
Thanks,
Sean
------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode