Agree, you are trying to use a CONSOLE name that is already in use.

"If return_code from MCSOPER is 4, after a CONSOLE ACTIVATE, then the console 
name is already in use. Use a different console name."

Depending on the length of the user ID you could add on to the end a unique 
character.  The down side is you might get a few "extra" EMCS consoles handing 
out.  In the last shop I worked at the user ID was typically only 6 characters. 
 So, I pulled the last digit of the current time and added it to the user ID to 
create a unique console name.

If I was creating a routine that would be used by multiple people/jobs/tasks, I 
would actually use a console name that was not tied to a person.  Even then I 
would do the extra digit at the end of the name to try to make it unique.

Paul

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Seymour J Metz
Sent: Tuesday, April 1, 2025 7:29 PM
To: [email protected]
Subject: Re: TSO OPER in Background TSO?

Meaning: Environmental error. For REQUEST=ACTIVATE, an EMCS console with this 
name is already active on this system or on a system within the same GRS NONE 
or RING environments. 

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר



________________________________________
From: IBM Mainframe Discussion List on behalf of Steve Estle
Sent: Tuesday, April 1, 2025 7:36 PM
To: [email protected]
Subject: Re: TSO OPER in Background TSO?


External Message: Use Caution


Thanks for suggestion - resulted in:

CONSOLE

IKJ55303I THE CONSOLE COMMAND HAS TERMINATED.+

IKJ55303I AN ERROR OCCURRED DURING CONSOLE INITIALIZATION.  THE MCSOPER RETURN 
THE MCSOPER RETURN CODE WAS X'00000004' AND THE REASON CODE WAS X'000000’

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN




----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to