PRTLN Demo Updates
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/*=== Demo a simple report =================================*/
|
/*=== Demo a "Really Simple Report" ============================*/
|
||||||
PGM
|
PGM
|
||||||
DCL (&LC) (*DEC) LEN(5 0) VALUE(1)
|
DCL (&LC) (*DEC) LEN(5 0) VALUE(1)
|
||||||
DCL (&UNDER) (*CHAR) LEN(20) VALUE('____________________')
|
DCL (&UNDER) (*CHAR) LEN(20) VALUE('____________________')
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*=== Demo a complex report ================================*/
|
/*=== Demo a more complex report ================================*/
|
||||||
/* List files & members with record count and description. */
|
/* List files & members with record count and description. */
|
||||||
/* Has heading lines, an underscored heading & page number. */
|
/* Has heading lines, an underscored heading & page number. */
|
||||||
PGM
|
PGM
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
/*=== Demo a complex report with breaks ============================*/
|
/*=== Demo a complex report with breaks ============================*/
|
||||||
/* Contains heading lines and underscored headings & page number */
|
/* Prints files, members and record counts in a library. */
|
||||||
/* - Library is in the heading line */
|
/* Contains heading lines and underscored headings & page number. */
|
||||||
/* - File prints only when it changes */
|
/* - Library is in the heading line. */
|
||||||
|
/* - File name prints only when it changes. */
|
||||||
|
/* - Prints "End of Report" on a new page at the end. */
|
||||||
PGM
|
PGM
|
||||||
DCL (&LINE) (*CHAR) LEN(132)
|
DCL (&LINE) (*CHAR) LEN(132)
|
||||||
/* Define data columns in &LINE */
|
/* Define data columns in &LINE */
|
||||||
@@ -54,5 +56,8 @@
|
|||||||
CHGVAR (&LINE_SPACE) 'S1'
|
CHGVAR (&LINE_SPACE) 'S1'
|
||||||
GOTO CMDLBL(LOOP)
|
GOTO CMDLBL(LOOP)
|
||||||
|
|
||||||
EOF: PRTLN CONTROL(*CLOSE)
|
EOF:
|
||||||
|
PRTLN CONTROL(*NEWPAGE)
|
||||||
|
PRTLN '*** End of Report ***' SPACE('S3')
|
||||||
|
PRTLN CONTROL(*CLOSE)
|
||||||
ENDPGM
|
ENDPGM
|
||||||
|
|||||||
+10
-2
@@ -147,9 +147,17 @@ Adjust the overflow or top of form line to suit your needs.
|
|||||||
|
|
||||||
MYPRT.CLLE is a simple CL program to create MYPRT.
|
MYPRT.CLLE is a simple CL program to create MYPRT.
|
||||||
|
|
||||||
### DEMO_CL1.CLLE, DEMO2_CL2.CLP and DEMO_CL3.CLLE
|
### DEMO_CL1.CLLE
|
||||||
|
|
||||||
Demonstartion programs of PRTLN in use.
|
A "Really Simple Report"
|
||||||
|
|
||||||
|
### DEMO2_CL2.CLP
|
||||||
|
|
||||||
|
A more complex report that lists the files, members, record count and description a set of files. Adjust the file set to suit your needs.
|
||||||
|
|
||||||
|
### DEMO_CL3.CLLE
|
||||||
|
|
||||||
|
Even more complex report printing a file member list for a library with the library name in the heading, breaking on file name and with an "End of Report" page at the end. To generalize, make the library name a parameter.
|
||||||
|
|
||||||
### DEMO_RPG1.SQLRPGLE
|
### DEMO_RPG1.SQLRPGLE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user