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: 8796
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: 8796
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: 8796
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: 19243
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: 8796
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 Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:

Back to Top