FSUM2397
No session was started. An unexpected error occurred. Error code = number, return value = number, errno = number (X'hexnum'), reason code = hexnum, message = 'string'

Explanation

No session was started with the z/OS shell, because a z/OS UNIX C function failed with an unexpected error. The error code displayed in the message indicates which z/OS UNIX C function failed.

In the message text:
error code = number
The error code shows which function failed.
161
read()
162
write()
163
seteuid()
164
setuid()
165
kill()
166
fork()
168
chdir()
169
getlogin()
170
getpwnam()
171
waitpid()
172
sigaddset()
173
sigprocmask()
174
sigemptyset()
175
sigaction()
177
waitpid()
178
sigdelset()
179
sigfillset()
180
stat()
181
fcntl()
182
sigpending()
183
sigismember()
184
mvssigsetup
185
mvsunsigsetup
186
setenv()
187
clearenv()
188
sysconf()
189
setlocale()
190
open()
191
setsid()
192
dup2()
201
w_getpsent()
202
time()
203
ttyname()
205
access()
206
tcgetattr()
207
tcsetattr()
208
tcflush()
209
tcgetpgrp()
210
select()
211
ioctl()
212
tcdrain()
213
getlogin (BPX1GLG)
214
getutxline()
215
pututxline()
216
fstat()
217
ptsname()
218
grantpt()
219
unlockpt()
220
dup()
return value = number
The return value reported by the system for this error.
errno = number (X'hexnum')
The errno value returned by the system for this error. For more information about this errno value, see z/OS XL C/C++ Runtime Library Reference. If errno = 0, no errno information is available from the system for this error.
reason code = hexnum
The reason code returned by the system for this error. For more information about this reason code, see z/OS UNIX System Services Programming: Assembler Callable Services Reference.
message = 'string'
A system error message that describes this error as reported by errno. If errno = 0, this message is not meaningful.

System programmer response

For more information on the errno and reason code values displayed in this message, see z/OS UNIX System Services Programming: Assembler Callable Services Reference and z/OS XL C/C++ Runtime Library Reference.

User response

Provide the system programmer with this message number and any variable information displayed in the message.