View previous topic :: View next topic
|
Author |
Message |
RickRock
New User
Joined: 11 Jan 2012 Posts: 1 Location: United States
|
|
|
|
Is it feasible to change the print channels in Easytrieve? In my program each time I execute PRINT (PRINT ABCDE) a form/report is printed.
Per my understanding in column 1 of the print file is a “channel” that tells the printer where to start printing.
Code: |
----+----1----+----2----+----3
******************************
1 <===
ADDRESS DATA
|
My objective is to be able to issue three PRINT commands per record and have the output be written to three different channels. Like this --
Code: |
----+----1----+----2----+----3
******************************
1
ADDRESS DATA
|
Code: |
----+----1----+----2----+----3
******************************
2
FORM DATA 1
|
Code: |
----+----1----+----2----+----3
******************************
3
FORM DATA 2
|
I hope my question makes sense, if not, let me know and I will try again.
Note:
I do not necessarily need to issue 3 print commands; essentially, I just need to ability to force a value into the print channel field to ensure that my forms are printed correctly. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
With appropriate statements you can format a whole page with one PRINT.
Why don't you try it with multiple LINE statements? Even look at the label printing stuff.
If you want "skip to channel" sort of stuff, look in the manual. If it's not there, it doesn't do it.
If none of the above helps, there's always the possibility of a Cobol PRINTER EXIT.
EDIT:
An example PRINTER EXIT is now here. |
|
Back to top |
|
|
|