When an input record that contains a channel 2 carriage control is read (or 
when previous 
input records have been printed with previous PRINTLINEs and this is the next 
PRINTLINE 
to be processed), the first data byte (after the carriage control byte) is 
tested. Since the 
>=x'00' condition is always true, the current COPYGROUP (from the FORMDEF) is 
>used 
(NULL) for the next page, but the P2 PAGEFORMAT is used to format the next page.

See Chapter 6. Conditional Processing in the PPFA book for a more detailed 
explanation.

By the way, the current PPFA book is S544-5284-09.

Howard Turetzky
Advanced Technical Support
InfoPrint Solutions Company
Boulder, CO
[email protected]

On Mon, 1 Mar 2010 14:44:58 -0800, George.William <[email protected]> 
wrote:

>Could someone give me a synopsis of what this block of code does
>so I can see if I'm starting to understand?
>
>  PRINTLINE CHANNEL 2;
>     POSITION 10 MM 260 MM
>     COLOR BLUE REPEAT 2;
>   CONDITION PAGE2 START 1 LENGTH 1
>     WHEN GE X'00' AFTER SUBPAGE
>        NULL PAGEFORMAT PG2;
>  ENDSUBPAGE;
>
>PAGEFORMAT PG2;
>....
>
>My best guess from a quick read of the manual is;
>PRINTLINE retrieves and prints the next line from the input data file
>CHANNEL 2 identifies where the carriage control character is and
>          acts accordingly
>CONDITION (named PAGE2) checks the first character (for a length of 1)
>And WHEN it this character is > or = to hex '00' it does ...
>  (I sort of lose it here)
>   I guess it does the NULL PAGEFORMAT PG2 AFTER it prints the line???
>
>Thanks for any insights
>Bill
>
>
>
>
>______________________________________________________________________
>CONFIDENTIALITY NOTICE: This email from the State of California is for the 
>sole use of 
the intended recipient and may contain confidential and privileged information. 
Any 
unauthorized review or use, including disclosure or distribution, is 
prohibited. If you are not 
the intended recipient, please contact the sender and destroy all copies of 
this email.
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to [email protected] with the message: GET IBM-MAIN INFO
>Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to