BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread spachfr
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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread Miklos Szigetvari

Hi

I think in your case POSIX(ON), so you need //dd:SYSPRM

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 ?

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


 



--
Miklos Szigetvari

Development Team
ISIS Information Systems Gmbh 
tel: (+43) 2236 27551 570
Fax: (+43) 2236 21081 

E-mail: [EMAIL PROTECTED] 

Info: [EMAIL PROTECTED] 
Hotline: +43-2236-27551-111 

Visit our Website: http://www.isis-papyrus.com 
---

This e-mail is only intended for the recipient and not legally
binding. Unauthorised use, publication, reproduction or
disclosure of the content of this e-mail is not permitted.
This email has been checked for known viruses, but ISIS accepts
no responsibility for malicious or inappropriate content.
---

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread Steve Comstock

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 ?


Tell us what you see when you issue these commands:

ls -al /u/my*
echo $PATH


--

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread IBM-MAIN Anonymous
The resul of the command

for the ls -al commmand

-rwxrwxrwx   1 OMVSKERN SYS1   73728 Sep  3 09:36 /u/myprog

for echo $PATH
/usr/lpp/Printsrv/bin:/bin:.

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread IBM-MAIN Anonymous
I have try with POSIX(ON)

/RUNSHELL EXEC PGM=BPXBATCH,   
/  PARM='PGM /u/openf POSIX(ON)'   
/STDOUT DD PATH='/u/resul',
/ PATHOPTS=(OCREAT,OTRUNC,OWRONLY) 
/SYSRPM DD DSN=ADCDB.PDS.PARMLIB(CMDPRM00),DISP=SHR
/* 
/SYSOUT DD SYSOUT=*
/SYSPRINT DD SYSOUT=*  

But the result is the same, is it correctly coded ?

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread Steve Comstock

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread McKown, John
> -Original Message-
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of spachfr
> Sent: Monday, September 03, 2007 9:27 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: BPXBATCH utility, how to access to PDS member ?
> 
> 
> 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 ?

I think that the problem may be that the BPXBATCH program is 
fork()ing to run your program. That means it runs in a separate address
space and the DD:SYSRPM is not propogated to the fork()'ed address
space. This is a real problem with UNIX program which try to access DD
statements. They must run in the same address space because fork() only
copies file descriptors (to UNIX files) and not DD statements.

what you might want to do is to set an environment variable to point to
the DSN that you want. Your C code would then need to retrieve that
variable and do a slightly different open. I don't have a C compiler, so
I cannot test this, but I think it would be something like:

FILE *fparm;   
char *dsn;
dsn=getenv("SYSPRM");
if (dsn==null) {
// write error message
exit 1; // exit with rc=1 to indicate failure
}
char fopen_parm[61];
strcpy(fopen_parm,"dd://'");
strncat(fopen_parm,dsn,54); // dsn max is 54 chars==44 dsn+ open paren
+8 member+ close paren
strcat(fopen_parm,"'"); // ending quote
fparm = fopen(fopen_parm,"r");
if (fparm != NULL)  {
}

//RUNSHELL EXEC PGM=BPXBATCH,   
//  PARM='SH export SYSPRM=USER1.PDS.PARMLIB(CMDPRM00); /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=*   

I cannot guarantee that this is correct, of course.  

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread Bill Godfrey
On Mon, 3 Sep 2007 09:26:37 -0500, spachfr <[EMAIL PROTECTED]> 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 DDNAME in the JCL (SYSRPM) does not match the ddanme in fopen 
(SYSPRM).

Bill

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread [EMAIL PROTECTED]
Thank's for your reply, but unfortunately for me it's not working.
I have  the following  message about SH in my  resul file:

FSUM7332 syntax error: got (, expecting New line

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread IBM-MAIN Anonymous
Thank's for reply
I have try this utiliy and I have a return code 0 but the PGM do nothing...
(no display message like no execution)

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread McKown, John
OOPS, you need to escape the parens.

//RUNSHELL EXEC PGM=BPXBATCH,   
//  PARM='SH export SYSPRM=USER1.PDS.PARMLIB\(CMDPRM00\); /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=*   

the \ will not show up in the environment variable. My bad.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it. 

> -Original Message-
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Monday, September 03, 2007 10:46 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: BPXBATCH utility, how to access to PDS member ?
> 
> 
> Thank's for your reply, but unfortunately for me it's not working.
> I have  the following  message about SH in my  resul file:
> 
> FSUM7332 syntax error: got (, expecting New line
> 
> --
> 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
>

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-03 Thread Steve Comstock

[EMAIL PROTECTED] wrote:

Thank's for your reply, but unfortunately for me it's not working.
I have  the following  message about SH in my  resul file:

FSUM7332 syntax error: got (, expecting New line


You didn't specify which suggestion you were referring to.

I think if you double check your DD names, as Bill G.
suggested, and run

//RUNSHELL EXEC PGM=BPXBATSL,
//  PARM='PGM /u/myprog'

you should be OK, assuming the member you're trying
to access exists. I don't believe you need POSIX(ON)
for this, but if you do you can include:

//STDENV  DD  *
_CEE_RUNOPTS=POSIX(ON)

also, some of the advice might vary depending on what
release of z/OS you're running.



--

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-04 Thread IBM-MAIN Anonymous
Thank's a lot to all of you, it's running now, my member is read

THANK'S

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-04 Thread McKown, John
> -Original Message-
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of IBM-MAIN Anonymous
> Sent: Tuesday, September 04, 2007 2:11 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: BPXBATCH utility, how to access to PDS member ?
> 
> 
> Thank's a lot to all of you, it's running now, my member is read
> 
> THANK'S

What did you do? Inquirining minds want to know!

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.

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


Re: BPXBATCH utility, how to access to PDS member ?

2007-09-04 Thread Van Dalsen, Herbie
John,

You wrote: What did you do?

Do want to tell me you do not know the answer?
Just joking... I was just to stupid to ask the 'what did you do?'
question...

Regards

Herbie

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of McKown, John
Sent: 04 September 2007 14:22
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: BPXBATCH utility, how to access to PDS member ?

> -Original Message-
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of IBM-MAIN Anonymous
> Sent: Tuesday, September 04, 2007 2:11 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: BPXBATCH utility, how to access to PDS member ?
> 
> 
> Thank's a lot to all of you, it's running now, my member is read
> 
> THANK'S

What did you do? Inquirining minds want to know!

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.

--
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
Elavon Financial Services Limited
Registered in Ireland: Number 418442
Registered Office: Block E, 1st Floor, Cherrywood Business Park, Loughlinstown, 
Co. Dublin, Ireland
Directors: Robert Abele (USA), John Collins,  Terrance Dolan (USA),  Pamela 
Joseph (USA), Declan Lynch, John McNally, Malcolm Towlson
Elavon Financial Services Limited, trading as Elavon, is regulated by the 
Financial Regulator

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


RE : Re: BPXBATCH utility, how to access to PDS member ?

2007-09-11 Thread pat pat
I have add a STDENV in my JCL and i use the BPXBASTL utility 

//RUNSHELL EXEC PGM=BPXBATSL,
//  PARM='PGM /u/zcwk'   
//STDOUT DD PATH='/u/resul', 
// PATHOPTS=(OCREAT,OTRUNC,OWRONLY)  
//STDENV DD *
 _CEE_RUNOPTS=POSIX(ON)  
//SYSPRM DD DSN=ADCDB.PDS.PARMLIB(CMDPRM00),DISP=SHR 
//*  
//SYSOUT DD SYSOUT=* 
//SYSPRINT DD SYSOUT=*   

My source code ( C code) to open the member
FILE *fparm;
fparm = fopen("dd:SYSPRM","r"); 


"McKown, John" <[EMAIL PROTECTED]> a écrit : > -Original Message-
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of IBM-MAIN Anonymous
> Sent: Tuesday, September 04, 2007 2:11 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: BPXBATCH utility, how to access to PDS member ?
> 
> 
> Thank's a lot to all of you, it's running now, my member is read
> 
> THANK'S

What did you do? Inquirining minds want to know!

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.

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


   
-
 Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

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


Tr: RE : Re: BPXBATCH utility, how to access to PDS member ?

2007-09-11 Thread pat pat
pat pat <[EMAIL PROTECTED]> a écrit : Date: Tue, 11 Sep 2007 09:38:34 +0200 
(CEST)
De: pat pat <[EMAIL PROTECTED]>
Objet: RE : Re: BPXBATCH utility, how to access to PDS member ?
À: IBM Mainframe Discussion List 

 I have add a STDENV in my JCL and i use the BPXBASTL utility 

//RUNSHELL EXEC PGM=BPXBATSL,
//  PARM='PGM /u/zcwk'   
//STDOUT DD PATH='/u/resul', 
// PATHOPTS=(OCREAT,OTRUNC,OWRONLY)  
//STDENV DD  *
 _CEE_RUNOPTS=POSIX(ON)  
//SYSPRM DD DSN=ADCDB.PDS.PARMLIB(CMDPRM00),DISP=SHR 
//*  
//SYSOUT DD  SYSOUT=* 
//SYSPRINT DD SYSOUT=*   

My source code ( C code) to open the member
FILE *fparm;
fparm = fopen("dd:SYSPRM","r"); 


"McKown, John" <[EMAIL PROTECTED]> a écrit : > -Original Message-
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of IBM-MAIN Anonymous
>  Sent: Tuesday, September 04, 2007 2:11 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: BPXBATCH utility, how to access to PDS member ?
> 
> 
> Thank's a lot to all of you, it's running now, my member is read
> 
> THANK'S

What did you do? Inquirining minds want to know!

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without  copying or disclosing
it.

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

   

-
  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

   
-
 Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

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