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

REXX exec (opercmd) failing quietly on new system


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mike.Fulton

New User


Joined: 11 Jun 2014
Posts: 22
Location: Canada

PostPosted: Sat Aug 03, 2019 4:45 am
Reply with quote

Hi

I have been using this rexx exec (opercmd) for awhile now. Here's the source:
Code:

/* REXX */
arg options
trace 'o'
parse var options command
parse var command opercmd

opercmd = strip(opercmd,'L')

If (opercmd == '-?' | opercmd == '') Then Do
  'mvscmdmsg opercmd 0 I'
  Return 0
End

cmd.1 = opercmd
cmd.0 = 1

rc=isfcalls('ON')
if rc<>0 then do
     Exit rc
end

/* Use SDSF Interface to issue console command */
Address SDSF ISFSLASH "("cmd.") (WAIT)"

if rc<>0 then do
     Exit rc
end

do ix=1 to isfulog.0
    say isfulog.ix
end                                                                             

do ix=1 to isfmsg2.0
    say isfmsg2.ix
end

rc=isfcalls('OFF')
Exit rc

and this works great on my z/OS 2.3 system.
On another system (which happens to be z/OS 2.2, but possibly irrelevant), it runs clean with no non-zero return codes. I am expecting I don't have the right authority, but am not sure.
The actual command I am trying to do is just:
opercmd 'd u,dasd,online'
which I can issue successfully from the sdsf log command line, e.g.
Code:

/d u,dasd,online

Running the REXX exec from USS I get:
Code:

ISF776I Processing started for action 1 of 1.
ISF769I System command issued, command text: D U,DASD,ONLINE.
ISF766I Request completed, status: COMMAND ISSUED.
[/code]
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 895
Location: The Universe

PostPosted: Sat Aug 03, 2019 9:36 am
Reply with quote

And what message do you see in LOG or ULOG? What value do you see in RC?
Back to top
View user's profile Send private message
Mike.Fulton

New User


Joined: 11 Jun 2014
Posts: 22
Location: Canada

PostPosted: Sat Aug 03, 2019 10:51 pm
Reply with quote

rc of 0 for all calls.
Ulog.0 has 0 entries - so nothing printed.
I didn’t know about log - will check!
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Can you give me examples of programs ... CLIST & REXX 9
No new posts ZOS Console commands through USS REXX? CLIST & REXX 5
No new posts REXX table content on panel will be r... CLIST & REXX 6
No new posts Tilde Characters Changing to COLONs i... CLIST & REXX 22
No new posts DSN REXX VARBINARY inserts CLIST & REXX 4
Search our Forums:

Back to Top