Hi Will,
Everything is possible!
Your friend in this case is the VCATALOG (verify catalog) command.
If you want to do it all in one routine, execute the VCATALOG command
from your program, capture and do a check on the output which should
indicate how the program was cataloged.Then you could do a CASE
statement to choose how you want to catalog it this time depending on
your specific criteria.
Be careful though, I don't know how complex your application is, so you
may be playing with fire. You don't want to get into a situation where
different accounts are using different versions of object code and your
programs get out of sync.
My advice, make sure you catalog correctly the first time!
Grüße
Glenn
Am 08.09.2011 00:24, schrieb Wjhonson:
Task: Write a BASIC helper program that will, figure out whether or not this
routine was previously catalogued locally, normally or globally and then,
automatically, after executing a BASIC on it, execute the appropriate CATALOG
on it as well.
Possible?
Useful?
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users