I'm trying to take my output of looped html and convert into pdf. Please note the line above "HTMLFORM BEGIN" in the code below.
Code:
-*
-SET &MAX_RUN = 3;
-SET &NUMRECS = 0;
-*
-SET &I = 0;
-*
-STARTLOOP
-*
-SET &I = &I + 1;
-*
-IF &I EQ &MAX_RUN GOTO ENDLOOP;
-*
-TYPE &I.A17.
-*
-*-IF &I LT &NUMRECS GOTO STARTLOOP;
-*
-ENDLOOP
-*
-******************************************************************
-******************************************************************
-******************************************************************
-*
-SKP_LOOPING
-*
-* START CODE HERE
DEFINE FILE HIERARCHY
FNAME/A5 = IF &I EQ 1 THEN 'TODD' ELSE IF &I EQ 2 THEN 'MIKE' ELSE 'JOHN';
LNAME/A5 = IF &I EQ 1 THEN 'JONES' ELSE IF &I EQ 2 THEN 'SMITH' ELSE 'DOE';
END
TABLE FILE HIERARCHY
PRINT
FNAME
LNAME
BY DIVISION NOPRINT
WHERE RECORDLIMIT EQ 1;
ON TABLE HOLD AS NAME FORMAT ALPHA
END
-RUN
-READ NAME &FNAME.A5. &LNAME.A5.
-TYPE &FNAME &LNAME
-*
-HTMLFORM BEGIN
-*
-* THIS IS TEST HTML THE REAL CODE IS ABOUT 250 LINES OF HTML CODE
-*
<table border="1">
<tr>
<td>!IBI.AMP.LNAME;, !IBI.AMP.FNAME;</td>
</tr>
</table>
-*
-HTMLFORM END
-*
-******************************************************************
-******************************************************************
-******************************************************************
-*
-IF &I LT &MAX_RUN GOTO STARTLOOP;
-*
-*
-ENDLOOP
-TYPE Total Runs: &I
-*
-*
-* Convert to PDF code here!
7.6.8
UNIX
FOCUS,HTML,PDF,EXCEL.