Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

JCL & VSAM :: RE: LISTCAT on a dataset with symbolic parameters

$
0
0
Author: Robert Sample
Posted: Fri Apr 07, 2017 6:33 pm (GMT 5.5)

Is this a one-time job or is it something you plan on running every month? If it will be running every month, explore the capabilities of your job scheduler -- several of them allow symbolic substitution in in-stream parameters. Otherwise, if you're running z/OS 2.1 or higher you can use SET, EXPORT SYMLIST= and SYMBOLS= in your JCL to pass the symbol to your in-stream data.

If you're not running 2.1 or higher, or you are not using in-stream data, then you are limited to writing a program to generate the LISTCAT statement(s) as Nic said.
_________________
TANSTAAFL

The first rule of code reuse is that the code needs to be worth re-using.

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth


Viewing all articles
Browse latest Browse all 8500

Trending Articles