To give a MVS opercommand, I use this statements:
ADDRESS TSO "CONSPROF SOLDISP(NO) UNSOLDISP(NO) SOLNUM(400)"
ADDRESS TSO "CONSOLE ACTIVATE"
ADDRESS CONSOLE "D SMF"
ADDRESS TSO "CONSOLE DEACTIVATE"
that works fine.
How to solve, when the Operator Command contains the special character (, which is defined as the subsystem character for MQ at our site.
Stan van Oers
Using subsystem character ( in a
-
- Posts: 3
- Joined: Thu Oct 28, 2021 8:16 pm
- Skillset: zos
Racf - Referer: Work and Google
- Pedro
- Posts: 686
- Joined: Thu Jul 31, 2008 9:59 pm
- Skillset: ISPF
- Referer: google
- Location: Silicon Valley
Re: Using subsystem character ( in a
Are you having a problem? Show us the syslog information.
In the example you provided, the operator command is enclosed in double quote characters. The quoted string is not processed by rexx. It should be passed as-is to the CONSOLE processor.
In the example you provided, the operator command is enclosed in double quote characters. The quoted string is not processed by rexx. It should be passed as-is to the CONSOLE processor.
Code: Select all
ADDRESS CONSOLE "(mq cmd"
Pedro Vera
-
- Posts: 3
- Joined: Thu Oct 28, 2021 8:16 pm
- Skillset: zos
Racf - Referer: Work and Google
Re: Using subsystem character ( in a
Hello Pedro,
Yes, I understand that I need to enter the MQ command like "(Q3S1 cmd" but then I get the error:
IKJ55315I THE SUBFIELD OF THE SYSCMD KEYWORD MUST HAVE A TERMINATING PARENTHESIS.
IKJ55312I THE CONSOLE COMMAND HAS TERMINATED.+
I think this is caused by the '(' in the command. '(' is the command prefix string (CPF) for MQ at our company).
So my question is how to get the ( in the Operator Command?
Stan
Yes, I understand that I need to enter the MQ command like "(Q3S1 cmd" but then I get the error:
IKJ55315I THE SUBFIELD OF THE SYSCMD KEYWORD MUST HAVE A TERMINATING PARENTHESIS.
IKJ55312I THE CONSOLE COMMAND HAS TERMINATED.+
I think this is caused by the '(' in the command. '(' is the command prefix string (CPF) for MQ at our company).
So my question is how to get the ( in the Operator Command?
Stan
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Using subsystem character ( in a
Two solutions:
1. add a closing ) preceeded by a couple of blanks after the command. Ugly, but should work.
2. use SDSF API Instead:
cmd='(DT'
if isfcalls('ON')<>0 then exit xmsg('IsfCalls ON failed',8)
address SDSF "ISFEXEC '/"cmd"' (WAIT"
do i=1 to isfulog.0
say strip(isfulog.i,'t')
end
Personally I have moved from TSO CONSOLE to SDSF in all my stuff.
1. add a closing ) preceeded by a couple of blanks after the command. Ugly, but should work.
2. use SDSF API Instead:
cmd='(DT'
if isfcalls('ON')<>0 then exit xmsg('IsfCalls ON failed',8)
address SDSF "ISFEXEC '/"cmd"' (WAIT"
do i=1 to isfulog.0
say strip(isfulog.i,'t')
end
Personally I have moved from TSO CONSOLE to SDSF in all my stuff.
- Pedro
- Posts: 686
- Joined: Thu Jul 31, 2008 9:59 pm
- Skillset: ISPF
- Referer: google
- Location: Silicon Valley
Re: Using subsystem character ( in a
Per the rexx reference, CONSOLE has a SYSCMD parameter...
Try specifying it explicitly, like this so that you provide both left and right parens:
Let us know if it works.
Try specifying it explicitly, like this so that you provide both left and right parens:
Code: Select all
ADDRESS CONSOLE "SYSCMD((mq cmd) "
Let us know if it works.
Pedro Vera
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 2547
-
by Isakshields
View the latest post
Wed Feb 09, 2022 11:05 am
-
-
Retrieve Subsystem Name executing under
by drowelf » Wed Feb 02, 2022 3:44 am » in Operating Systems - 0
- 1950
-
by drowelf
View the latest post
Wed Feb 02, 2022 3:44 am
-
-
- 6
- 2801
-
by sergeyken
View the latest post
Fri May 09, 2025 12:52 am
-
-
Retain non numeric character in IFTHEN - BUILD
by Shambu » Wed Dec 01, 2021 5:00 pm » in Syncsort/Synctool - 1
- 1974
-
by sergeyken
View the latest post
Sat Dec 04, 2021 2:28 pm
-