Written by

IT Officer, Cellular Pathology at Calderdale and Huddersfield NHS Foundation Trust
Question Robert Steed · May 21, 2024

After creating %ZSTART in %SYS, Studio can't log on

I created %ZSTART, having just learned about it. I included some minimal code to test it, as follows:
%ZSTART
SYSTEM
         WRITE "SYSTEM.",!
         QUIT
JOB
         WRITE "JOB.",!
         QUIT
LOGIN
         WRITE "LOGIN.",!
         QUIT
CALLIN
         WRITE "CALLIN.",!
         QUIT

Now Terminal still works as normal, and sure enough I get "LOGIN" displayed, but when I start Studio I get an error message such as the following. I wonder what Caché ODBC has to do with it.

---------------------------
Studio
---------------------------
Unable to log on to server BOBSCACHE, namespace APEX
[Cache ODBC][State : 08S01][Native Code 452]

[C:\PROGRAMS\INTERSYSTEMS\CACHE\BIN\CSTUDIO.EXE]

Message sequencing error
---------------------------
Retry   Cancel   
---------------------------

Any ideas what's happening here please?

Bob

Product version: Caché 2018.1

Comments

John Murray · May 21, 2024

Your code is writing its message to the principal device of the process spawned to handle your Studio session. That is the TCP/IP device which Studio is reading from, so it gets confused by the unexpected message. 

0
Robert Steed  May 21, 2024 to John Murray

Thanks John. I deleted the routine via Management Portal - problem solved.

0
Eduard Lebedyuk · May 21, 2024

Stop iris, go to iris.cpf and disable zstart calls, start iris, remove your zstart routine or comment out io writes, stop iris, reenable zstart calls in iris.cpf, start iris.

0