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

How to switch off msgs in REXX


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

New User


Joined: 18 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Mon Aug 11, 2008 9:16 pm
Reply with quote

Hi All,

I am using the below macro to submit a job which would unload msgs from the queue for a stipulated time :

The macro is as follows:
Code:

/* REXX */                                                       
SAY 'PLEASE ENTER START DATE AND TIME'                           
PULL INPUT1                                                       
PARSE VAR INPUT1 1 V1 3. 3 V2 5. 5 V3 9. 9 V4 11. 11 V5 13. V6   
STRTIME = V1||"/"||V2||"/"||V3||","||V4||":"||V5||":"||V6         
IDSN = 'START_DATE/TIME='||STRTIME''                             
                                                                 
SAY 'PLEASE ENTER END DATE AND TIME'                             
PULL INPUT2                                                       
PARSE VAR INPUT2 1 W1 3. 3 W2 5. 5 W3 9. 9 W4 11. 11 W5 13. W6   
ENDTIME = W1||"/"||W2||"/"||W3||","||W4||":"||W5||":"||W6         
ODSN = 'START_DATE/TIME='||ENDTIME''                             
                                                                 
"ALLOCATE FILE(ANYDD) SYSOUT(R) WRITER(INTRDR) RECFM(F) LRECL(80)"
"ALLOCATE FILE(JCLDD) DATASET('TOP1.BALASH.UTILS(MQSKL)') SHR"   
"EXECIO * DISKR JCLDD (STEM P. "                                 
T.1 = "//"USERID()"B JOB (TTSA,85B8),'TEST',CLASS=T,MSGCLASS=H," 
T.2 = "//    NOTIFY=&SYSUID,MSGLEVEL=(1,1)"                       
X.1 = "QNAME=GS.FW.GOCARS.TPS.TRADES"   
X.2 = IDSN                             
X.3 = ODSN                             
X.4 = "/*"                             
X.5 = "//*"                             
"EXECIO * DISKW ANYDD (STEM T. "       
"EXECIO * DISKW ANYDD (STEM P. "       
"EXECIO * DISKW ANYDD (STEM X. FINIS"   
"FREE FILE(ANYDD)"                     
"FREE FILE(JCLDD)"                     
 EXIT                                   
/*SAY SUBMIT(JCL.)*/               


The macro is working fine but it gives the following msg in the end which I would want to do without:

"FILE JCLDD NOT FREED, DATA SET IS OPEN"

This msg appears though I have coded the FREE FILE statement for JCLDD.

Hariharan
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Mon Aug 11, 2008 9:37 pm
Reply with quote

The msg says the file is still OPEN and cannot be FREEd. You need a FINIS when you're done processing.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Aug 11, 2008 9:58 pm
Reply with quote

To suppress TSO messages, you may try ADDRESS TSO "PROFILE NOWTPMSG NOINTERCOM".

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

New User


Joined: 18 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Tue Aug 12, 2008 1:13 am
Reply with quote

This is still not working!!

I tried ADDRESS TSO "PROFILE NOWTPMSG NOINTERCOM"

also tried to do a FINIS as below

EXECIO * DISKW ANYDD (STEM T. "
"EXECIO * DISKW ANYDD (STEM P. FINIS"
"EXECIO * DISKW ANYDD (STEM X. FINIS"

Please let me know if I am doing the right thing!!
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Tue Aug 12, 2008 1:17 am
Reply with quote

Quote:
also tried to do a FINIS as below

EXECIO * DISKW ANYDD (STEM T. "
"EXECIO * DISKW ANYDD (STEM P. FINIS"
"EXECIO * DISKW ANYDD (STEM X. FINIS"


You refer to ANYDD, but the error message refers to JCLDD. Add the FINIS to the EXECIO for JCLDD.
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: Tue Aug 12, 2008 1:20 am
Reply with quote

Hello,

Are you getting the same error?

You added another FINIS for ANYDD, but i see none for JCLDD.
Back to top
View user's profile Send private message
hariharan_82

New User


Joined: 18 Apr 2007
Posts: 23
Location: Chennai

PostPosted: Tue Aug 12, 2008 1:22 am
Reply with quote

Great!! It worked. Thanks for pointing out the msitake.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Tue Aug 12, 2008 1:43 am
Reply with quote

Back in CLIST-land, I coded command CONTROL NOMSG to turn these types of messages off. Perhaps you can try this for next time.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Aug 12, 2008 2:45 pm
Reply with quote

to save and set
old_setting = MSG("OFF")
to reset
z = MSG(old_setting)

see
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ3A320/4.4.3?SHELF=IKJOSE20&DT=20000113164209#SPTMSGFUNC
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
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
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top