spachfr wrote:
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 ?
Try using
//RUNSHELL EXEC PGM=BPXBATSL,
instead of BPXBATCH
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
z/OS Application development made easier
* Our classes include
+ How things work
+ Programming examples with realistic applications
+ Starter / skeleton code
+ Complete working programs
+ Useful utilities and subroutines
+ Tips and techniques
----------------------------------------------------------------------
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