Hey folks,
Sorry for the continued PROC questions but the owner of our company loves them...groan!
Question for y'all, is there anyway to create a unique list ID within PROC. like "SAVE-LIST LIST.NAME.PORT#" or ...?
THX!
~Doc
------------------------------
Doc Ruckel
Part time programmer
Rocket Forum Shared Account
------------------------------
Doc,
You can construct pretty much what you like as a list id - but if you want unique do you mean (1) Unique within this PROC instance, (2) Unique in this account as in use at this time (i.e. any prior lists of this name can be deleted and this name cannot be used by another process) or (3) unique on some other basis ? (if so, please explain)
Depending upon your intent, the following may be of assistance on User Exits
U2196
This user exit returns the user's terminal number either to the terminal, or to the primary input buffer or current output buffer. The syntax is:
U2196
target
target can be one of the following:
Target Description
T print on the terminal screen
P place into primary input buffer
S place into current output buffer
A place into the other output buffer
U31AD
This user exit returns the user's terminal number in file name form (for example, with an uppercase P
concatenated onto the end) either to the terminal or into the primary input buffer or current output
buffer. The syntax is:
U31AD
target
target can be one of the following:
Target Description
T print on the terminal screen
P place into primary input buffer
S place into the current output buffer
A place into the other output buffer
If you want to make sure no prior list of this name existed then run a DELETE-LIST beforehand.
Regards
JJ
------------------------------
John Jenkins
Thame, Oxfordshire
------------------------------
Doc,
You can construct pretty much what you like as a list id - but if you want unique do you mean (1) Unique within this PROC instance, (2) Unique in this account as in use at this time (i.e. any prior lists of this name can be deleted and this name cannot be used by another process) or (3) unique on some other basis ? (if so, please explain)
Depending upon your intent, the following may be of assistance on User Exits
U2196
This user exit returns the user's terminal number either to the terminal, or to the primary input buffer or current output buffer. The syntax is:
U2196
target
target can be one of the following:
Target Description
T print on the terminal screen
P place into primary input buffer
S place into current output buffer
A place into the other output buffer
U31AD
This user exit returns the user's terminal number in file name form (for example, with an uppercase P
concatenated onto the end) either to the terminal or into the primary input buffer or current output
buffer. The syntax is:
U31AD
target
target can be one of the following:
Target Description
T print on the terminal screen
P place into primary input buffer
S place into the current output buffer
A place into the other output buffer
If you want to make sure no prior list of this name existed then run a DELETE-LIST beforehand.
Regards
JJ
------------------------------
John Jenkins
Thame, Oxfordshire
------------------------------
Hey John!
Many thanks for the reply. Proved very helpful!
~Doc
------------------------------
Doc Ruckel
Part time programmer
Rocket Forum Shared Account
------------------------------
Hey John!
Many thanks for the reply. Proved very helpful!
~Doc
------------------------------
Doc Ruckel
Part time programmer
Rocket Forum Shared Account
------------------------------
Doc,
Before BASIC had the EXECUTE and/or PERFORM commands, and also named COMMON, PROC was essential. Over the years it evolved from PQ to PQN (new) PROCS and had direct file access commands (F-OPEN, F-READ, F-WRITE, etc.), SAVE-LIST processing commands (PQ-SELECT, etc.) and both direct and indirect subscripting (MV %2 %#2 for example) added. While intended mainly as a job control language (JCL) it can be used more extensively.
While I've seen it both used and abused (a definite 'mea culpa' here) I would still use it for job control and batch processing without thinking twice about it. While some folk are not fans of PROC, I am definitely a fan - in its place though.
if you play with it for a while you might be surprised, though some decent examples of functioning PROC can help a lot to get started.
Regards
JJ
------------------------------
John Jenkins
Thame, Oxfordshire
------------------------------