Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Hrecall in REXX background

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Hrecall in REXX background
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: 8619
Location: Back in jolly old England

PostPosted: Thu Aug 23, 2007 5:51 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Aug 23, 2007 5:57 pm    Post subject:
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: 8619
Location: Back in jolly old England

PostPosted: Thu Aug 23, 2007 9:43 pm    Post subject:
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    Post subject: Reply to: Hrecall in REXX background
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    Post subject: Reply to: Hrecall in REXX background
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: 8619
Location: Back in jolly old England

PostPosted: Fri Aug 24, 2007 12:29 pm    Post subject:
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    Post subject: Reply to: Hrecall in REXX background
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

Site Director


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

PostPosted: Fri Aug 24, 2007 8:41 pm    Post subject:
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: 8619
Location: Back in jolly old England

PostPosted: Sat Aug 25, 2007 11:59 am    Post subject:
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    Post subject: Reply to: Hrecall in REXX background
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    Post subject:
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    Post subject: Re: Hrecall in REXX background
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

Moderator Team Head


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

PostPosted: Fri Dec 21, 2007 6:21 pm    Post subject: Reply to: Hrecall in REXX background
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us