I am getting a compile error which has me confused. The following are the errors from the compile and stored to the .err file associated with the program. Note the datanames m.12 which does not match the lines in the program. What is odd is that the number portion corresponds to the field number of the underlying cursor.
Here are the associated lines in the program. The m.g_ prefixed names are from a cursor where I have done a "SCATTER MEMVAR MEMO BLANK". I am assigning values to the memory variables in preparation of doing a APPEND BLANK and GATHER MEMVAR MEMO a bit later.
The cursor was created from an actual table as shown below.
So what or why has the compiler interpreted the m.g_ prefixed datanames and substituted m.12 for the dataname? In the debugger I can watch the m.g_fit_amt for instance and see its value after the SCATTER.
TIA, Mark
Code:
STORE lnP_FIT_Amt TO m.12
Error in line 390: Command contains unrecognized phrase/keyword.
m.12 = lnP_FIT_Amt
Error in line 391: Unrecognized command verb.
m.13= lnP_FICA_Amt
Error in line 392: Unrecognized command verb.
m.14 = lnP_SIT_Amt
Error in line 393: Unrecognized command verb.
m.25 = lcP_State
Error in line 413: Unrecognized command verb.
m.28 = lcP_Gender
Error in line 416: Unrecognized command verb.
Here are the associated lines in the program. The m.g_ prefixed names are from a cursor where I have done a "SCATTER MEMVAR MEMO BLANK". I am assigning values to the memory variables in preparation of doing a APPEND BLANK and GATHER MEMVAR MEMO a bit later.
Code:
STORE lnP_FIT_Amt TO m.g_fit_amt
m.g_fit_amt = lnP_FIT_Amt
m.g_fica_amt= lnP_FICA_Amt
m.g_sit_amt = lnP_SIT_Amt
m.g_oth_amt = lnP_Oth_Amt
The cursor was created from an actual table as shown below.
Code:
PROCEDURE CreateCursor
LOCAL laGMS, lnIxMax
DIMENSION laGMS[1]
*
SELECT 0
USE GMS NOUPDATE
lnIxMax = AFIELDS(laGMS, 'GMS')
USE
CREATE CURSOR gms FROM ARRAY laGMS
RETURN
So what or why has the compiler interpreted the m.g_ prefixed datanames and substituted m.12 for the dataname? In the debugger I can watch the m.g_fit_amt for instance and see its value after the SCATTER.
TIA, Mark