MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need a little help with HRECALL in JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
amart
Beginner


Joined: 19 Oct 2007
Posts: 1
Topics: 1
Location: Toronto

PostPosted: Wed Oct 24, 2007 9:17 am    Post subject: Need a little help with HRECALL in JCL Reply with quote

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 //*                                                       


Confused
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Oct 24, 2007 12:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Oct 24, 2007 9:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Thu Oct 25, 2007 1:59 am    Post subject: Reply with quote

amart,

Check the link below for a REXX solution:

http://www.mvsforums.com/helpboards/viewtopic.php?t=36&highlight=hrecall+rexx
_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group