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

capturing the contension message


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
malathy_tv

New User


Joined: 29 May 2007
Posts: 34
Location: chennai

PostPosted: Mon Sep 08, 2008 3:39 pm
Reply with quote

hi,

can anybody let me know how do we capture the contensions messages in the mainframe if an dataset being used by another user and populate an error message like 'try after 2 minutes' in rexx
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Mon Sep 08, 2008 3:53 pm
Reply with quote

you can try this.

Code:

x = outtrap('lm.')
address tso"whohas '"refdsn"'"
x = outtrap('off')
if pos('not in use',lm.1) = 0 then say 'try again later in 2 minutes'
Back to top
View user's profile Send private message
malathy_tv

New User


Joined: 29 May 2007
Posts: 34
Location: chennai

PostPosted: Mon Sep 08, 2008 4:26 pm
Reply with quote

TSO whohas is not supported in our machine
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Mon Sep 08, 2008 5:18 pm
Reply with quote

this might help:

ibmmainframes.com/viewtopic.php?t=4743

ibmmainframes.com/viewtopic.php?t=30513
Back to top
View user's profile Send private message
malathy_tv

New User


Joined: 29 May 2007
Posts: 34
Location: chennai

PostPosted: Tue Sep 09, 2008 10:28 am
Reply with quote

Thank you genesis
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Rexx log capturing CLIST & REXX 15
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts Capturing COBOL job and program names... All Other Mainframe Topics 2
Search our Forums:

Back to Top