Hello,

I have write a pgm in C language. This PGM access in read mode to a member
of a PDS.
When the pgm run by JCL (like //STEP1   PGM=myprog) is worked find.

I want to use it under Unix services with BPXBATCH utility, but when the PGM
try to  access to the member it failed with a return code (errno) 129 "no
such file or directory".
The code is the same !(?) 

My JCL:
//RUNSHELL EXEC PGM=BPXBATCH,                       
//  PARM='PGM /u/myprog'                             
//STDOUT DD PATH='/u/resul',                        
// PATHOPTS=(OCREAT,OTRUNC,OWRONLY)                 
//SYSRPM DD DSN=USER1.PDS.PARMLIB(CMDPRM00),DISP=SHR
//*                                                 
//SYSOUT DD SYSOUT=*                                
//SYSPRINT DD SYSOUT=*     

A part of my code
FILE *fparm;                   
fparm = fopen("dd:SYSPRM","r");
if (fparm != NULL)  {
    }

The chmod has been set to 777
Could you help me to find what is wrong ?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to