Hello Gabor,

I just checked it out using one of my programs which does the same
and assigning an input file to it where I don't have read access to.

I get the same 913-38 message in JESMSGLG, but the C program
terminated normally, simply issuing a message that the file could not be
opened.

That is:

the fopen call returns NULL in this case, and if you do a proper check
for fopen returning NULL, all is fine.

Please contact me offline, if you have further questions concerning
the details.

Kind regards

Bernd



Am 10.05.2014 13:27, schrieb Gabor Hoffer:
Hello,

I have a LE C program that crashes if I try to open a dataset that is not
allowed to read with my user. How can I catche and ( handle in C) this type
of error?

13.19.56 JOB08022  ICH408I USER(GAH2    ) GROUP(SYS1    ) NAME(GAH2
    064               GAH.NOACCESS.PDS CL(DATASET ) VOL(DSK30E)
    064               INSUFFICIENT ACCESS AUTHORITY
    064               FROM GAH.NOACCESS.PDS (G)
    064               ACCESS INTENT(READ   )  ACCESS ALLOWED(NONE   )
13.19.56 JOB08022  IEC150I
913-38,IFG0194E,GEX1,AGENT,SYS00079,030E,DSK30E,GAH.N
13.19.56 JOB08022  CEE0374C CONDITION = CEE3250C TOKEN = 00040CB2 61C3C5C5
00000
    066                      WHILE RUNNING PROGRAM UCXJM25
    066                      AT THE TIME OF INTERRUPT
    066                      PSW     078D0400 800A3FCC
    066                      GPR 0-3 00166D14 001667D8 00166A98 00000000
    066                      GPR 4-7 00000000 00000008 00000004 0BA47038
    066                      GPR 8-B 0D02E220 000207F0 0D02E220 000A3650
    066                      GPR C-F 00166D20 00166760 800A3F74 00000000
    066                      FLT 0-2 4E800001536E0B5C  0000000000000000
    066                      FLT 4-6 0000000000000000  0000000000000000
13.19.56 JOB08022  BPXP011I THREAD 0BD5D9B800000003, IN PROCESS 50397294,
WAS  0
    072             TERMINATED DUE TO A PTHREAD QUIESCE OF TYPE 2.
13.19.56 JOB08022  BPXP011I THREAD 0BD5E64000000004, IN PROCESS 50397294,
WAS  0
    073             TERMINATED DUE TO A PTHREAD QUIESCE OF TYPE 2.
13.19.56 JOB08022  BPXP011I THREAD 0BD5F2C800000005, IN PROCESS 50397294,
WAS  0
    074             TERMINATED DUE TO A PTHREAD QUIESCE OF TYPE 2.
13.19.56 JOB08022  BPXP011I THREAD 0BD5A79800000002, IN PROCESS 50397294,
WAS  0
    075             TERMINATED DUE TO A PTHREAD QUIESCE OF TYPE 2.
13.19.56 JOB08022  BPXP011I THREAD 0BD59B1000000001, IN PROCESS 50397294,
WAS  0
    076             TERMINATED DUE TO A PTHREAD QUIESCE OF TYPE 2.
13.19.56 JOB08022  ICH422I THE ENVIRONMENT CANNOT BECOME UNCONTROLLED.
13.19.56 JOB08022  CSV042I REQUESTED MODULE IEAVTRP2 NOT ACCESSED. THE
MODULE IS
13.19.56 JOB08022  BPXP014I ENVIRONMENT MUST REMAIN CONTROLLED FOR SERVER
(BPX.S
13.19.56 JOB08022  CSV042I REQUESTED MODULE IEAVTRF4 NOT ACCESSED. THE
MODULE IS
13.19.56 JOB08022  ICH422I THE ENVIRONMENT CANNOT BECOME UNCONTROLLED.
13.19.56 JOB08022  BPXP014I ENVIRONMENT MUST REMAIN CONTROLLED FOR SERVER
(BPX.S

Thanks and reagrds,
Gabor

----------------------------------------------------------------------
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