rmarles
6th February 2004, 20:26
Hey all

is there a variable that contains the device name that a report is being spooled to?

Looking for something similiar to "job.device(14)" that can be accessed from the report script (by a user directly, not through a job) to see where it's going and take actions appropriately.

The help files in 3.1 don't seem to say anything about "device" other then "job related".

Thanks.

mark_h
6th February 2004, 21:06
Yes - spool.device.


Mark

rmarles
6th February 2004, 21:11
d'uh! :D

Makes sense, I can't believe I didn't figure that one out.

Out of humliliation, I took a quick look to see if I could find that one again and I couldn't.

One more question for you then - seq.no of the print job - is that in a variable somewhere?

Thanks in advance!

lbencic
6th February 2004, 22:06
I don't see a variable for this, I don't run Job's much. Just a thought though. If you can run this as a job manually in debug, while in you program script debugger enter "L". This will show you a listing of all the open program variables with their value. Maybe something undocumented or a job variable that is external will be available for you to check this.

Let us know if so.

rmarles
6th February 2004, 22:14
Lisa

You sent me in the right direction - it's spool.id.

Thanks!