Re: JCL Builder or script HELP



Raul,
Not to be a smart aleck, but this would be a great reason to write a COBOL program.


JCL (for z/OS, OS/390, or MVS) is formatted so that you can find the statement type you want by testing the first two characters. Then, JOB, EXEC, DD, and many other "//" type statements can be decoded by using UNSTRING. The first card image of a statement has name (optional), operation, operand (optional), and comments (optional), delimited by all space up to the comments. If the operand ends with a comma, then at least one continuation card image is expected. These have the format null, operand, comments (optional), again delimited by all space. With careful use of UNSTRING features, you can string all of the operands together into one long string for further processing, or later construction of new statements.

Once you've done the work to be able to read JCL and separate it into its component parts, you can use the code over and over for different purposes. Having such a tool at your disposal can make you very popular with your peers and management!

.



Relevant Pages

  • Re: Infix operator names
    ... I found Pascal's infix operators easy to write and, more importantly, easy ... the right operand is a set based on the same ordinal, ... operator called "format". ... *printfand *scanflibrary functions. ...
    (comp.databases.theory)
  • Re: Creating a variable length FTP to ASCII file
    ... format (RECFM) is usually declared within the program, ... I changed it in the CoBOL and JCL. ... was variable length, without trailing spaces. ...
    (bit.listserv.ibm-main)
  • Re: IEBCOPY Unloaded dataset to PC and back again...not
    ... reconstructed into the right format and sent to the utility of choice ... those can't be safely enveloped inside JCL because there's ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Unix systems and Serialization mechanism
    ... It was when I started as a JCL Jocky, 30 years ago. ... the z/OS MVS JCL Manual. ... you do not specify the LIKE operand or any space operand (i.e. ...
    (bit.listserv.ibm-main)
  • Re: COBOL based data items and dynamic storage allocation
    ... The ALLOCATE statement seems to require a receiving ... operand where "address of dynamic-area" appears. ... The following would seem to suggest a syntax error. ... "5) This identifier format shall not be specified as ...
    (comp.lang.cobol)