View previous topic :: View next topic |
Author |
Message |
amart Beginner
Joined: 19 Oct 2007 Posts: 1 Topics: 1 Location: Toronto
|
Posted: Wed Oct 24, 2007 9:17 am Post subject: Need a little help with HRECALL in JCL |
|
|
hi there,
I'm trying to create a jcl to recall a set of files. I'm trying to make one qualifier of the dsn dynamic (in this case MM is 11 in the DSN file). Please help
Code: | 000009 //PROC JCLLIB ORDER=(CT75.CYLPROC.JCLLIB)
000010 // INCLUDE MEMBER=YWC0TA58
=NOTE= I1// SET MM=11
000011 //*
000012 //STEPA EXEC PGM=IKJEFT01
000013 //SYSTSIN DD *
=NOTE= ----+----1----+----2----+----3----+----4----+----5----+----6----+----7-
000014 HRECALL 'YW.C00P.DW.UNIT*.AIR.*11.**'
000015 //SYSPRINT DD SYSOUT=(,),OUTPUT=*.JCLOUT
000016 //SYSTSPRT DD SYSOUT=(,),OUTPUT=*.JCLOUT
000017 //SYSOUT DD SYSOUT=(,),OUTPUT=*.JCLOUT
000018 //SYSUDUMP DD SYSOUT=(,),OUTPUT=*.DUMPOUT
000019 //* |
 |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed Oct 24, 2007 12:27 pm Post subject: |
|
|
SET only affects JCL not data. You would need a program to read in a parameter which can be assigned a value by SET and have the program generate your HRECALL control records.
BTW - your JCL, as shown, does not include &MM _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Oct 24, 2007 9:32 pm Post subject: |
|
|
The SET is a note line, not part of the data anyway, but I don't think HRECALL supports complex patterns; at least most commands do not. You'll probably need a small Rexx exec get the list. ISPF services or CSI (as demonstrated in 'SYS1.PROCLIB(IGGCSIRX)' can be used to get the list from which you will choose. IGGCSIRX might be able to handle the pattern as it is. _________________ New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html. |
|
Back to top |
|
 |
vivek1983 Intermediate

Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
|
Back to top |
|
 |
|
|