Re: Sample program for JES dataset read?

2018-05-25 Thread Charles Mills
Thanks. Will take a look. 

CharlesSent from a mobile; please excuse the brevity.
 Original message From: Dan D <zos.j...@gmail.com> Date: 
5/24/18  9:44 PM  (GMT+01:00) To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Sample 
program for JES dataset read? 
Hi Charles,

It hasn't been mentioned but you could also use the SAPI interface.

File 790 on the CBT site has a package called "SRS" which is great for pulling 
the datasets from a job on spool.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Sample program for JES dataset read?

2018-05-24 Thread Dan D
Hi Charles,

It hasn't been mentioned but you could also use the SAPI interface.

File 790 on the CBT site has a package called "SRS" which is great for pulling 
the datasets from a job on spool.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Sample program for JES dataset read?

2018-05-14 Thread Charles Mills
I've checked it out. There are a lot of moving parts among all of the 
interfaces; I was hoping for one complete sample. I have it working now (and 
without using SSI, so far).

FWIW, yes to BPXWDYN() and yes to fopen("//DD:ddname").

Charles


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Allan Staller
Sent: Monday, May 14, 2018 5:39 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Sample program for JES dataset read?

The OP should check out "Using the Subsystem Interface".

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Charles Mills
Sent: Friday, May 11, 2018 5:12 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Sample program for JES dataset read?

Perhaps I am over-complicating it. (I am just thinking; have not written any 
code yet.)

I think I can use BPXWDYN() for that matter.

I am assuming that I can come down to fopen("//DD:ddname");

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Sample program for JES dataset read?

2018-05-14 Thread Allan Staller
The OP should check out "Using the Subsystem Interface".

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Charles Mills
Sent: Friday, May 11, 2018 5:12 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Sample program for JES dataset read?

Perhaps I am over-complicating it. (I am just thinking; have not written any 
code yet.)

I think I can use BPXWDYN() for that matter.

I am assuming that I can come down to fopen("//DD:ddname");

Charles


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Kirk Wolf
Sent: Friday, May 11, 2018 1:49 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Sample program for JES dataset read?

The only slightly tricky thing is the dynamic allocation, that that is pretty 
straight forward for the primary subsystem.
You can even use  __svc99() in the C library and then fopen("//DD:ddname",
)

Kirk Wolf
Dovetailed Technologies
https://apac01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdovetail.com=02%7C01%7Callan.staller%40HCL.COM%7Ce9c67723bf9145eb842008d5b78c4b10%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C1%7C63661673926739=st9TA%2FqsSFgB8Bme8bPHXGI4i%2BRFvh7RivXyEU2xpwY%3D=0

On Fri, May 11, 2018 at 12:29 PM, Charles Mills <charl...@mcn.org> wrote:

> Thanks. Possibly useful. Not sure at first glance if too "SDSF-specific"
> or not.
>
> I would not be writing in Rexx but Rexx serves just fine as a
> "pseudo-code" language.
>
> Charles
>
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Paul Gilmartin
> Sent: Friday, May 11, 2018 8:45 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Sample program for JES dataset read?
>
> On Thu, 10 May 2018 17:30:53 -0700, Charles Mills wrote:
>
> >Is there a sample program - say in SYS1.SAMPLIB or on the CBT tape
> >(yes, I
> >looked) - that shows an example of how to allocate and read a JES
> >spool dataset?
> >
> >How to do this, in other words:
> >https://apac01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fib
> >m.co%2F2IbrcGV=02%7C01%7Callan.staller%40HCL.COM%7Ce9c67723bf914
> >5eb842008d5b78c4b10%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C1%7C6366
> >1673926739=7cvYYFZ4Ce2jcDm47g8iJBpreazYvc34zl3Ruw2yYLs%3D
> >eserved=0
> >
> If Rexx is a suitable alternative, look at Rexx examples in the SDSF
> manual.
> The interface does not require TSO: it's equally usable under Unix
> System Services.
>
> The scheme is to drill down through JobID, stepname, procstepname, to
> DD name.  SDSF then allocates a generated DD name to that spool file.
> An example reads from that to EXECIO DISKR (STEM.  I modified it to
> LINKMVS IEBGENER after I overrode SYSUT1 to the name SDSF generated.
>
> -- gil
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send
> email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN
::DISCLAIMER::
--
The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. E-mail transmission is not guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or may contain viruses in transmission. 
The e mail and its contents (with or without referred errors) shall therefore 
not attach any liability on the originator or HCL or its affiliates. Views or 
opinions, if any, presented in this email are solely those of the author and 
may not necessarily reflect the views or opinions of HCL or its affiliates. Any 
form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of this message without the prior written 
consent of aut

Re: Sample program for JES dataset read?

2018-05-11 Thread Charles Mills
Perhaps I am over-complicating it. (I am just thinking; have not written any 
code yet.)

I think I can use BPXWDYN() for that matter.

I am assuming that I can come down to fopen("//DD:ddname");

Charles


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Kirk Wolf
Sent: Friday, May 11, 2018 1:49 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Sample program for JES dataset read?

The only slightly tricky thing is the dynamic allocation, that that is
pretty straight forward for the primary subsystem.
You can even use  __svc99() in the C library and then fopen("//DD:ddname",
)

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Fri, May 11, 2018 at 12:29 PM, Charles Mills <charl...@mcn.org> wrote:

> Thanks. Possibly useful. Not sure at first glance if too "SDSF-specific"
> or not.
>
> I would not be writing in Rexx but Rexx serves just fine as a
> "pseudo-code" language.
>
> Charles
>
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Paul Gilmartin
> Sent: Friday, May 11, 2018 8:45 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Sample program for JES dataset read?
>
> On Thu, 10 May 2018 17:30:53 -0700, Charles Mills wrote:
>
> >Is there a sample program - say in SYS1.SAMPLIB or on the CBT tape (yes, I
> >looked) - that shows an example of how to allocate and read a JES spool
> >dataset?
> >
> >How to do this, in other words: https://ibm.co/2IbrcGV
> >
> If Rexx is a suitable alternative, look at Rexx examples in the SDSF
> manual.
> The interface does not require TSO: it's equally usable under Unix System
> Services.
>
> The scheme is to drill down through JobID, stepname, procstepname, to
> DD name.  SDSF then allocates a generated DD name to that spool file.
> An example reads from that to EXECIO DISKR (STEM.  I modified it to
> LINKMVS IEBGENER after I overrode SYSUT1 to the name SDSF generated.
>
> -- gil
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Sample program for JES dataset read?

2018-05-11 Thread Kirk Wolf
The only slightly tricky thing is the dynamic allocation, that that is
pretty straight forward for the primary subsystem.
You can even use  __svc99() in the C library and then fopen("//DD:ddname",
)

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Fri, May 11, 2018 at 12:29 PM, Charles Mills <charl...@mcn.org> wrote:

> Thanks. Possibly useful. Not sure at first glance if too "SDSF-specific"
> or not.
>
> I would not be writing in Rexx but Rexx serves just fine as a
> "pseudo-code" language.
>
> Charles
>
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Paul Gilmartin
> Sent: Friday, May 11, 2018 8:45 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Sample program for JES dataset read?
>
> On Thu, 10 May 2018 17:30:53 -0700, Charles Mills wrote:
>
> >Is there a sample program - say in SYS1.SAMPLIB or on the CBT tape (yes, I
> >looked) - that shows an example of how to allocate and read a JES spool
> >dataset?
> >
> >How to do this, in other words: https://ibm.co/2IbrcGV
> >
> If Rexx is a suitable alternative, look at Rexx examples in the SDSF
> manual.
> The interface does not require TSO: it's equally usable under Unix System
> Services.
>
> The scheme is to drill down through JobID, stepname, procstepname, to
> DD name.  SDSF then allocates a generated DD name to that spool file.
> An example reads from that to EXECIO DISKR (STEM.  I modified it to
> LINKMVS IEBGENER after I overrode SYSUT1 to the name SDSF generated.
>
> -- gil
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Sample program for JES dataset read?

2018-05-11 Thread Charles Mills
Thanks. Possibly useful. Not sure at first glance if too "SDSF-specific" or not.

I would not be writing in Rexx but Rexx serves just fine as a "pseudo-code" 
language.

Charles


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Paul Gilmartin
Sent: Friday, May 11, 2018 8:45 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Sample program for JES dataset read?

On Thu, 10 May 2018 17:30:53 -0700, Charles Mills wrote:

>Is there a sample program - say in SYS1.SAMPLIB or on the CBT tape (yes, I
>looked) - that shows an example of how to allocate and read a JES spool
>dataset?
>
>How to do this, in other words: https://ibm.co/2IbrcGV
> 
If Rexx is a suitable alternative, look at Rexx examples in the SDSF manual.
The interface does not require TSO: it's equally usable under Unix System
Services.

The scheme is to drill down through JobID, stepname, procstepname, to
DD name.  SDSF then allocates a generated DD name to that spool file.
An example reads from that to EXECIO DISKR (STEM.  I modified it to
LINKMVS IEBGENER after I overrode SYSUT1 to the name SDSF generated.

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Sample program for JES dataset read?

2018-05-11 Thread Paul Gilmartin
On Thu, 10 May 2018 17:30:53 -0700, Charles Mills wrote:

>Is there a sample program - say in SYS1.SAMPLIB or on the CBT tape (yes, I
>looked) - that shows an example of how to allocate and read a JES spool
>dataset?
>
>How to do this, in other words: https://ibm.co/2IbrcGV
> 
If Rexx is a suitable alternative, look at Rexx examples in the SDSF manual.
The interface does not require TSO: it's equally usable under Unix System
Services.

The scheme is to drill down through JobID, stepname, procstepname, to
DD name.  SDSF then allocates a generated DD name to that spool file.
An example reads from that to EXECIO DISKR (STEM.  I modified it to
LINKMVS IEBGENER after I overrode SYSUT1 to the name SDSF generated.

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Sample program for JES dataset read?

2018-05-11 Thread Steve Smith
I'll trust that your look was as good as mine would be.  Maybe it's
considered too elementary to sample.

Oddly, I wrote such code eons ago, like on MVS/XA.  It used some SSI
requests for information, then basically proceeded as that link describes.

sas


On Thu, May 10, 2018 at 8:30 PM, Charles Mills  wrote:

> Is there a sample program - say in SYS1.SAMPLIB or on the CBT tape (yes, I
> looked) - that shows an example of how to allocate and read a JES spool
> dataset?
>
> How to do this, in other words: https://ibm.co/2IbrcGV
>
> Charles
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>



-- 
sas

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Sample program for JES dataset read?

2018-05-10 Thread Charles Mills
Is there a sample program - say in SYS1.SAMPLIB or on the CBT tape (yes, I
looked) - that shows an example of how to allocate and read a JES spool
dataset?

How to do this, in other words: https://ibm.co/2IbrcGV  

Charles

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN