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

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Charles Mills
Sent: Friday, May 11, 2018 5:12 PM
To: [email protected]
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:[email protected]] On Behalf 
Of Kirk Wolf
Sent: Friday, May 11, 2018 1:49 PM
To: [email protected]
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&data=02%7C01%7Callan.staller%40HCL.COM%7Ce9c67723bf9145eb842008d5b78c4b10%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C1%7C636616735555926739&sdata=st9TA%2FqsSFgB8Bme8bPHXGI4i%2BRFvh7RivXyEU2xpwY%3D&reserved=0

On Fri, May 11, 2018 at 12:29 PM, Charles Mills <[email protected]> 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:[email protected]]
> On Behalf Of Paul Gilmartin
> Sent: Friday, May 11, 2018 8:45 AM
> To: [email protected]
> 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&data=02%7C01%7Callan.staller%40HCL.COM%7Ce9c67723bf914
> >5eb842008d5b78c4b10%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C1%7C6366
> >16735555926739&sdata=7cvYYFZ4Ce2jcDm47g8iJBpreazYvc34zl3Ruw2yYLs%3D&r
> >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 [email protected] with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send
> email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] 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 authorized representative of HCL is strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any email and/or attachments, please check them for 
viruses and other defects.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to