How to pull addresses for the population you need
1. Write your focexec to pull the population you want, save the SSN in your last hold.
2. THEN DEFINE THE FOLLOWING FIELD SO THAT IT IS AVAILABLE TO THE
LAST TABLE STATEMENT IN YOUR REQUEST: FORMKEY .
3. FORMKEY SHOULD BE DEFINE D AS " A/09 " AND SHOULD CONTAIN THE SSN
FROM THE FILE YOU ARE USING IN YOUR LAST TABLE STATEMENT.
4. REPLACE THE SSN IN THE PRINT OR SUM STATEMENT WITH FORMKEY .
5. PLACE FORMKEY INTO A HOLD FILE BY ADDING THE STATEMENT " ON TABLE
HOLD AS FORMDATA " PRIOR TO THE LAST "END" STATEMENT IN YOUR TABLE
REQUEST.
6. THE HOLD FILE MUST BE NAMED FORMDATA .
DEFINE FILE RTDATA
FORMKEY/A9 = RT010;
END
TABLE FILE RTDATA
SUM RT010 FORMKEY
BY AA005 NOPRINT
ON TABLE HOLD AS FORMDATA
END
DEFINE FILE FORMDATA
BLANKS/A40=' ';
SSN/A9=FORMKEY;
-INCLUDE ADDRESS1
END
-RUN
-*
TABLE FILE FORMDATA
PRINT AP110 AP105 AP130 AP220_U AP225_U AP230_U AP235_U AP240_U
BY AP240_U NOPRINT
It is VERY IMPORTANT that you use the ‘dash include’
-include ADDRESS1
That way when Apps needs to change that subroutine due to an upgrade or TOS from the vendor – your focexec will still work!!! Copying the subroutine into the exec ISN’T a good idea. ASFOCA is the subroutine that changed due to the
‘seamless’ upgrade SCT pushed on us in late Fall 2002….