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: 917
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
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
Search our Forums:

Back to Top