I don't know if you want to bother with it, but if you want to (it's a PITA), you could make your HLASM subroutine be LE compliant. And then use the CEEHDLR service routine to capture the abend (as C does). The gory detail of the later are explained here: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/CEEA21C0/3.4 If, instead, you decide use ESTAEX in your HLASM code, remember to save and restore LE's handler at entry and exit.
I don't know which of the above is more difficult. I tend to just let things blow up. On Sun, May 11, 2014 at 1:55 PM, Gabor Hoffer <[email protected]>wrote: > Hi, > > I've just checked my program and i think I've found the root of the > problem. I use an asm module to list members in a pds and probably my > program crashes in this code ( not ESTAE handling), not in fopen(). > I've made a tiny testprogram and to verify it, and fopen() works as > expected, returns NULL and errno is set: 92-EDC5092I An I/O abend was > trapped. > > Thank for your help! > > Regards, > Gabor > > > On Sun, May 11, 2014 at 11:25 AM, Robert S. Hansel (RSH) < > [email protected]> wrote: > > > Gabor, > > > > It may be crashing because your ID apparently has access to FACILITY > > resource BPX.SERVER, which requires a 'clean' program environment (i.e., > > all programs must either be in LPA or defined by a PROGRAM class > profile), > > and it is trying to load undefined programs. See the ICH422I messages. > > You'll either need to define the programs with their associated libraries > > to RACF or, unless you are specifically trying to create a daemon that > > needs BPX.SERVER authority, remove your access to the latter. > > > > Regards, Bob > > > > Robert S. Hansel > > Lead RACF Specialist > > RSH Consulting, Inc. > > 617-969-8211 > > www.linkedin.com/in/roberthansel > > http://twitter.com/RSH_RACF > > www.rshconsulting.com > > ----------------------------------------------------------------------- > > 2014 RACF Training > > - Audit & Compliance Roadmap - Boston - OCT 27-30, 2014 > > - Intro & Basic Admin - WebEx - JUN 9-13, 2014 > > - Intro & Basic Admin - WebEx - DEC 8-12, 2014 > > - Securing z/OS UNIX - WebEx - SEPT 30 - OCT 3, 2014 > > ----------------------------------------------------------------------- > > > > -----Original Message----- > > Date: Sat, 10 May 2014 13:27:28 +0200 > > From: Gabor Hoffer <[email protected]> > > Subject: Handle RACF abend in LE C > > > > 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 > -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
