The Jol Universal Command language (which can be used as a replacement
for JCL and Clists, and which can run jobs in Batch or TSO) has quite a
few symbolic variables preset.

Furthermore, User Exits or Macros can be used to set additional
Symbolics at startup, or later.  Symbolic Variables can be tested, or
changed, and full arithmetic expressions (similar to PL/I) can be
performed on them.

These are some of the Symbolic Variables that are set at startup:

%SYSDATE       The current date in Julian format e.g. 09290
%DAY           MONDAY, TUESDAY, etc.
%MONTH         JANUARY, FEBRUARY, etc.
%MONTHNO       01, 02 Through 12
%DAYNO         01 through 31
%YEAR          2009, 2010, etc.
%HOURS         0 through 23
%MINS          0 through 59
%SECS          0 through 59

%SYSUID        System user identification
%SYSPREF       Dataset prefix
%SYSPFK        Program function key number from PANELs

%SYSTEM        MFT, MVT, VS1, VS2, VM, etc.
%SPOOL         HASP, ASP, JES1, JES2, JES3, or Blank

Jol is a free form scripting language similar to PL/I and Rexx.

It is available for Z/OS and a Windows version can create JCL to be submitted to the mainframe.


Clement Clarke



Scott T. Harder wrote:
John,

You are not the only one.  I've always found it frustrating that &SYSUID is
the only available symbol/variable that is available for use in batch.
Seems to me that there should be many more.  Aside from the temp data set
names you can use - and this is no news to everyone - we have to hardcode
EVERYTHING in JCL.  IBM should start to look at JCL like more of a scripting
language, IMO, and provide a lot more of what you originally posted about.

All the best,
Scott T. Harder



----------------------------------------------------------------------
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
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.287 / Virus Database: 270.12.7/2085 - Release Date: 04/28/09 
18:02:00


----------------------------------------------------------------------
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