I agree with Gil, but wlll also mention mention that the BPXBATCH he
was talking about runs a UNIX program, not normal z/OS batch programs.
And can only generate UNIX file names, not legacy data set names
(DSN=).

If you're thinking of what the Windows cmd prompt, or a UNIX shell can
do, where you can "wild card" to match multiple files in a given
directory (or folder in Windows-speak), then you simply can't do that
with z/OS JCL. This "wild carding" is sometimes called "file globbing"
in UNIX and z/OS JCL does not have _anything_ like that for JCL in the
DSN= of a DD, or in a PARM=, or anywhere else. The closest  for z/OS
batch might be the LISTCAT command in the IDCAMS program, but that
doesn't help you directly. And that "wild carding" is done by the
IDCAMS program internally. There is not a z/OS system API call to do
it for you. At least not directly. And, again, not in JCL. JCL is
_primitive_!

The "best" z/OS can do, and it's none too good, is what is called
GDG-ALL processing. A pretty technical explanation is given here:
http://www-01.ibm.com/support/docview.wss?uid=isg1II08285
A nice tutorial on GDG data sets is here:
http://www.simotime.com/gdgone01.htm

I include the above only for completeness, just in case you are not
familiar with GDGs.

On Sat, Jul 26, 2014 at 12:58 AM, Rajesh Janakiraman
<[email protected]> wrote:
> Dear Mates,
>
> If you have any idea about using wildcard characters in JCL, kindly let me 
> know.
>
> I need to get an extract file for every one hour and I need to add the job in 
> OPCA, so that by using wildcard characters for every one hour the extract may 
> get genrated automatically.
>
> Please let me kow the detailed explanation i.e. wildcard characters that is 
> found in JCL to describe a dataset.
>
> Thanks in advance.
>
> Know more about us on www.hdfcbank.com. Connect with us on Facebook at 
> www.facebook.com/hdfcbank
>
> ____________________________________________
>
>
> Disclaimer:
> "The information contained herein (including any accompanying documents) is 
> confidential and is intended solely for the addressee(s). If you have 
> erroneously received this message, please immediately delete it and notify 
> the sender. Also, if you are not the intended recipient, you are hereby 
> notified that any disclosure, copying, distribution or taking any action in 
> reliance on the contents of this message or any accompanying document is 
> strictly prohibited and is unlawful. The organization is not responsible for 
> any damage caused by a virus or alteration of the e-mail by a third party or 
> otherwise.
> Regd. Office : HDFC Bank Ltd., HDFC Bank House, Senapati Bapat Marg, Lower 
> Parel (W), Mumbai - 400 013. "
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN



-- 
There is nothing more pleasant than traveling and meeting new people!
Genghis Khan

Maranatha! <><
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to