IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Hrecall in REXX background


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Thu Aug 23, 2007 5:07 pm
Reply with quote

Hi,

I have a GDG list which has some datasets in Migrated/Non Migrated status. What i want to do is to find out if its migrated and then do a hrecall. But since this process happens in a rexx tool I wouldnt want the Hrecall message to show up on the screen. Can anyone suggest a way to do Hrecall in the background without getting the messages displyed on the screen?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 23, 2007 5:51 pm
Reply with quote

Can't do it.

HSM decides where the ouput from the HRECALL command goes, and whatever you try to code it ends up on your screen.

Bummer, eh icon_cry.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Aug 23, 2007 5:57 pm
Reply with quote

I think you can try either OUTTRAP, or TSO PROFILE NOINTERCOM NOWTPMSG.

O.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 23, 2007 9:43 pm
Reply with quote

HSM uses TPUT, so OUTTRAP won't work .... I know - I've tried it icon_confused.gif

Interesting about the PROFILE settings. I'll look them up tomorrow.
Back to top
View user's profile Send private message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Fri Aug 24, 2007 9:42 am
Reply with quote

Thanks for the tips. But can you tell me what exactly i need to code in the program?
Back to top
View user's profile Send private message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Fri Aug 24, 2007 10:46 am
Reply with quote

IF Ofer and Expat,

I ran the code based on the tip you had given but the message still pos up.
This is the code

IF ZDLMIGR = 'YES' THEN DO
CALL OUTTRAP('DUMMY.')
Address TSO "PROFILE NOINTERCOM NOWTPMSG"
ADDRESS TSO "HRECALL '"DSVAR"' NOWAIT"
CALL MSG('OFF')
END

Message

VOLUME MOUNT ISSUED FOR RECALL OR RECOVER OF
(CONT.) "dataset name"
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Aug 24, 2007 12:29 pm
Reply with quote

Read my previous post about HSM using TPUT and outtrap not working
Back to top
View user's profile Send private message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Fri Aug 24, 2007 5:36 pm
Reply with quote

Hi expat,

U mean to say this wont happen at all even if I want to use Profile?

icon_rolleyes.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 24, 2007 8:41 pm
Reply with quote

Hello,

Don't know if this might work for you, but you could submit the HRECALL to run in batch, not attached to your online rexx execution.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Aug 25, 2007 11:59 am
Reply with quote

Dick,

I can't recall (no pun intended) if HSM takes your uid from the submitted job and routes the messages to you that way.

I know that it used to, but that may have changed in later releases.
Back to top
View user's profile Send private message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Tue Aug 28, 2007 6:00 pm
Reply with quote

Hi,

I tried submitted a JCL in rexx that does the Hrecall. It does not give me a 'hrecall' message. However does anyone know how to turn off the 'JCL submitted' message in rexx?
Back to top
View user's profile Send private message
feellikeneo

New User


Joined: 19 Mar 2007
Posts: 73
Location: Chennai

PostPosted: Fri Sep 07, 2007 5:35 pm
Reply with quote

Hi CJT,

If you want to just turn off that Jcl submitted message like "JOB <userid>(<some #)" then you can use
Code:
STATUS = MSG('OFF')
in your rexx program.


The Status is nothing but just a variable. and turn on those messages use
Code:
STATUS = MSG('ON')
Back to top
View user's profile Send private message
sathiya_09

New User


Joined: 07 Dec 2007
Posts: 2
Location: chennai

PostPosted: Fri Dec 21, 2007 6:14 pm
Reply with quote

Can u pls tell me how can i do a HRECALL thru REXX?
Can u put up the code here...?

Thanks...
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Dec 21, 2007 6:21 pm
Reply with quote

Look a few posts above yours. The code was already posted.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top