Re: JCL Builder or script HELP
- From: Colin Campbell <cmcampb@xxxxxxxxxxxx>
- Date: Thu, 05 May 2005 17:02:43 -0700
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!
.
- Follow-Ups:
- Re: JCL Builder or script HELP
- From: Raul
- Re: JCL Builder or script HELP
- References:
- JCL Builder or script HELP
- From: Raul
- JCL Builder or script HELP
- Prev by Date: Re: Of mice and men
- Next by Date: Re: JCL Builder or script HELP
- Previous by thread: Re: JCL Builder or script HELP
- Next by thread: Re: JCL Builder or script HELP
- Index(es):
Relevant Pages
|