View previous topic :: View next topic
|
Author |
Message |
CJT
New User
Joined: 02 Aug 2007 Posts: 83 Location: Here
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I think you can try either OUTTRAP, or TSO PROFILE NOINTERCOM NOWTPMSG.
O. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
HSM uses TPUT, so OUTTRAP won't work .... I know - I've tried it
Interesting about the PROFILE settings. I'll look them up tomorrow. |
|
Back to top |
|
|
CJT
New User
Joined: 02 Aug 2007 Posts: 83 Location: Here
|
|
|
|
Thanks for the tips. But can you tell me what exactly i need to code in the program? |
|
Back to top |
|
|
CJT
New User
Joined: 02 Aug 2007 Posts: 83 Location: Here
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Read my previous post about HSM using TPUT and outtrap not working |
|
Back to top |
|
|
CJT
New User
Joined: 02 Aug 2007 Posts: 83 Location: Here
|
|
|
|
Hi expat,
U mean to say this wont happen at all even if I want to use Profile?
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
CJT
New User
Joined: 02 Aug 2007 Posts: 83 Location: Here
|
|
|
|
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 |
|
|
feellikeneo
New User
Joined: 19 Mar 2007 Posts: 73 Location: Chennai
|
|
|
|
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
|
|
Back to top |
|
|
sathiya_09
New User
Joined: 07 Dec 2007 Posts: 2 Location: chennai
|
|
|
|
Can u pls tell me how can i do a HRECALL thru REXX?
Can u put up the code here...?
Thanks... |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Look a few posts above yours. The code was already posted. |
|
Back to top |
|
|
|