Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to switch off msgs in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to switch off msgs in REXX
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    Post subject:
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: 2360
Location: Israel

PostPosted: Mon Aug 11, 2008 9:58 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Tue Aug 12, 2008 1:17 am    Post subject: Reply to: How to switch off msgs in REXX
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

Site Director


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

PostPosted: Tue Aug 12, 2008 1:20 am    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Tue Aug 12, 2008 2:45 pm    Post subject: Reply to: How to switch off msgs in REXX
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us