IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

BPXBATCH occasionally can't find shell script


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Curtis Autery

New User


Joined: 31 Jan 2008
Posts: 2
Location: Columbus, OH

PostPosted: Mon Feb 04, 2008 11:57 pm
Reply with quote

I have a JCL where BPXBATCH calls a shell script. It fails roughly one out of 5 times with a not found message, referring to the script, specifically
Code:
/u/sprodid/ei/httpmf.sh: FSUM7351 not found


We've gone through some troubleshooting on this to determine if the job was failing over to another LPAR that had a different Unix filesystem, and verified that no other jobs were accessing the script at the same time as the job that failed.

The JCL populates the call to BPXBATCH using variables, and the same job gets called every 15 minutes, and the variables appear to be populating correctly in the jobs that fail. Here is the JCL snipping calling the shell script:

Code:
//EICALL1  EXEC PGM=BPXBATCH,                                 
//          PARM='sh /u/&UACCT./ei/httpmf.sh &HOST &SVC &CREDS'


...and here is some sample job output showing the error code for EICALL1:

Code:
---- MONDAY,    04 FEB 2008 ----                                                                           
 IRR010I  USERID SPRODID  IS ASSIGNED TO THIS JOB.                                                         
 DTM4750I JOB CPU LIMITED TO 60:00                                                                         
 IEF196I DTM4750I JOB CPU LIMITED TO 60:00                                                                 
 ICH70001I SPRODID  LAST ACCESS AT 12:27:54 ON MONDAY, FEBRUARY 4, 2008                                   
 $HASP373 #SEIP470 STARTED - WLM INIT  - SRVCLASS PRDBATLO - SYS COCB                                     
 IEF403I #SEIP470 - STARTED - TIME=12.28.01                                                               
 -                                         --TIMINGS (MINS.)--            ----PAGING COUNTS---             
 -JOBNAME  STEPNAME PROCSTEP    RC   EXCP    CPU    SRB  CLOCK   SERV  PG   PAGE   SWAP    VIO SWAPS STEPNO
 -#SEIP470          EIRNLOG1    00    141    .00    .00    .00   5230   0      0      0      0     0     1
 -#SEIP470          EIRNCTL1    00    256    .00    .00    .01  13562   0      0      0      5     0     2
 -#SEIP470          EIRNCTL2    00     23    .00    .00    .00   1306   0      0      0      0     0     3
 -#SEIP470          EIRNLOG2    00    163    .00    .00    .01   6167   0      0      0      0     0     4
 -#SEIP470          EICALL0     00     18    .00    .00    .00    325   0      0      0      0     0     5
 -#SEIP470          EICALL1   3840     46    .00    .00    .00   1914   0      0      0      0     0     6


Could anyone help shed some light on this? Why would the script not be visible to BPXBATCH occasionally?

Thanks,
Curtis
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Feb 05, 2008 12:56 am
Reply with quote

Hello Curtis and welcome to the forums,

Any chance that "something" is being renamed periodically - possibly to prevent some process(es) from being run at that time?
Back to top
View user's profile Send private message
Curtis Autery

New User


Joined: 31 Jan 2008
Posts: 2
Location: Columbus, OH

PostPosted: Tue Feb 05, 2008 8:03 pm
Reply with quote

dick scherrer wrote:
Hello Curtis and welcome to the forums,

Any chance that "something" is being renamed periodically - possibly to prevent some process(es) from being run at that time?


DS,

Sort of. More precisely, "something" is occasionally late to the party.

Our working theory now is that the directory in question isn't auto-mounting correctly. We're thinking that BPXBATCH and automount are in sort of a race condition, and we're going to set the directory in question to stay mounted, and see if that clears things up.

Thanks for the reply.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Feb 05, 2008 8:29 pm
Reply with quote

You're welcome icon_smile.gif

Good luck and if you post the solution, it may help someone else later.

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
No new posts Need to find a specific STRING COBOL Programming 11
Search our Forums:

Back to Top