Joined: 10 May 2007 Posts: 2230 Location: Hampshire, UK
If you have the right level of OS and your LISCAT control card is in-stream then you can use a symbolic parameter. Otherwise you cannot so you would have to use a program of some kind to generate the LISTCAT statement with the YYMM resolved.
Joined: 06 Jun 2008 Posts: 8490 Location: Dubuque, Iowa, USA
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.