I Am Having a Problem with a JDE RPG Program We Modified to Include the Equal Sign As A

Total Page:16

File Type:pdf, Size:1020Kb

I Am Having a Problem with a JDE RPG Program We Modified to Include the Equal Sign As A

I am having a problem with a JDE RPG program we modified to include the equal sign as a break between cost centers. Unfortunately the report does not handle overflow properly (note the only change to the RPG was the addition of lines 250100 – 250500) and often the headings are not printed.

The print file specs added are all the lines with indicator 69.

I am having trouble remembering how the JDE code and RPG handles printer overflow. The space before obviously has something to do with this but I can’t remember or find any older books to assist me. The current JDE program is approximately 200 pages long compiled and I need to keep it simple. Any assistance is greatly appreciated

RPG Specs

249900 CSR MOVE *BLANK $PRTA 1 250000 CSR MOVE *OFF $HDPRT 250100 CSR SETOF 69 250200 CSR VC1TOT IFNE *BLANKS 250300 CSR VC1KEY ANDNE*BLANKS 250400 CSR SETON 69 250500 CSR ENDIF 250600 C* 250700 B4 CSR SELEC 250800 W4 CSR @@FORM WHEQ '1' 250900 B5 CSR $DET IFEQ '1' 251000 B6 CSR $NAME IFEQ 'AN8' 251100 CSR $@WWHO ANDEQ'1' 251200 CSR MOVE '1' $PRTA 251300 CSR WRITETOTAL3 OF 251400 C* ------251500 CSR EXSR S010A 251600 C* ------251700 B4 CSR $PBRK IFEQ '1' 251800 CSR EXSR S010C 251900 C* ------252000 E4 CSR ENDIF 252100 X6 CSR ELSE 252200 CSR WRITETOTAL3 OF 252300 C* ------252400 E6 CSR ENDIF 252500 X5 CSR ELSE 252600 CSR WRITETOTAL3 OF 252700 C* ------252800 E5 CSR ENDIF

Print File Specs

30500 A R TOTAL3 30600 A 38 41'------' 30700 A SPACEB(1) 30800 A 38 59'------' 30900 A 38 77'------' 31000 A 38 92'------' 31100 A 38 107'------' 31200 A 38 122'------' 31300 A 38 137'------' 31400 A 38 152'------' 31500 A VC1KEY 12A 1TEXT('Total Line Key Value ') 31600 A SPACEB(1) 31700 A VC1TOT 23A 14TEXT('Total Line Description ') 31800 A $$AG 17A 41TEXT('Amount - Gross ') 31900 A $$AAP 17A 59TEXT('Amount Open ') 32000 A $$#AG1 14A 77TEXT('Amount - Aging Categories 1 ') 32100 A $$#AG2 14A 92TEXT('Amount - Aging Categories 2 ') 32200 A $$#AG3 14A 107TEXT('Amount - Aging Categories 3 ') 32300 A $3#AG4 14A 122TEXT('Amount - Aging Categories 4 ') 32400 A $$#AG5 14A 137TEXT('Amount - Aging Categories 5 ') 32500 A $$#AG6 14A 152TEXT('Amount - Aging Categories 6 ') 32600 A 2' ' 32700 A SPACEB(1) 32800 A** R BREAK0 32900 A 69 1'======' 33000 A SPACEB(1) 33100 A 69 21'======' 33200 A 69 41'======' 33300 A 69 61'======' 33400 A 69 81'======' 33500 A 69 101'======' 33600 A 69 121'======' 33700 A 69 141'======' 33800 A 69 161'======' 33900 A 69 181'======' 34000 A 69 2' ' 34100 A SPACEB(1)

Recommended publications