Re: DYNALLOC, FREE, and ENQ?

2021-10-13 Thread Scott Ballentine
For the original question: > Suppose I have in JCL: DD DISP=SHR,DSN=SOME.DATA.SET. > > In my program, I dynalloc (same) SOME.DATA.SET OLD. I expect > the ENQ to be upgraded to EXC. But when I FREE the allocation, > can the ENQ revert to SHR? No, once that ENQ is upgraded from

Re: DYNALLOC, FREE, and ENQ?

2021-10-11 Thread Attila Fogarasi
gt; Behalf Of Paul Gilmartin > Sent: Monday, October 11, 2021 3:35 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: DYNALLOC, FREE, and ENQ? > > Suppose I have in JCL: DD DISP=SHR,DSN=SOME.DATA.SET. > > In my program, I dynalloc (same) SOME.DATA.SET OLD. I expect

Re: DYNALLOC, FREE, and ENQ?

2021-10-11 Thread Seymour J Metz
@LISTSERV.UA.EDU Subject: Re: DYNALLOC, FREE, and ENQ? I don't know, but what about if you had //DD1 DD DISP=SHR,DSN=SOME.DATA.SET //DD2 DD DISP=OLD,DSN=SOME.DATA.SET,FREE=CLOSE And CLOSEd DD2? FWIW, I just looked up FREE=CLOSE to make sure I had it right and my at-hand manual (V2R1) says &qu

Re: DYNALLOC, FREE, and ENQ?

2021-10-11 Thread Charles Mills
ertain but that would seem to imply an ENQ downgrade. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Monday, October 11, 2021 3:35 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: DYNALLOC, FREE, and ENQ? Suppose I

DYNALLOC, FREE, and ENQ?

2021-10-11 Thread Paul Gilmartin
Suppose I have in JCL: DD DISP=SHR,DSN=SOME.DATA.SET. In my program, I dynalloc (same) SOME.DATA.SET OLD. I expect the ENQ to be upgraded to EXC. But when I FREE the allocation, can the ENQ revert to SHR? -- gil -- For IBM

Re: COBOL cob2 Unix compile and SVC99 (DYNALLOC)

2021-01-26 Thread Paul Gilmartin
ly exclusive with PATH. But that has been fixed, perhaps only in BPXWDYN by doing a FREE before the ALLOCATE. > >From: Farley, Peter x23353 >Sent: Tuesday, January 26, 2021 12:27 PM > >It might be as simple as the DYNALLOC in cob2 is not using t

Re: COBOL cob2 Unix compile and SVC99 (DYNALLOC)

2021-01-26 Thread Frank Swarbrick
23353 <031df298a9da-dmarc-requ...@listserv.ua.edu> Sent: Tuesday, January 26, 2021 12:27 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: COBOL cob2 Unix compile and SVC99 (DYNALLOC) Frank, It might be as simple as the DYNALLOC in cob2 is not using the REUSE parameter to reuse an existing DD. You

Re: COBOL cob2 Unix compile and SVC99 (DYNALLOC)

2021-01-26 Thread Farley, Peter x23353
Frank, It might be as simple as the DYNALLOC in cob2 is not using the REUSE parameter to reuse an existing DD. You could also simply wrap the invocation of cob2 with a TSO "FREE FI(SYSPRINT)" and after cob2 "ALLOC FI(SYSPRINT) DA(*)". Peter -Original Message-

Re: COBOL cob2 Unix compile and SVC99 (DYNALLOC)

2021-01-26 Thread Frank Swarbrick
Agreed. I will probably do this. Thanks for the input! From: IBM Mainframe Discussion List on behalf of Seymour J Metz Sent: Tuesday, January 26, 2021 11:37 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: COBOL cob2 Unix compile and SVC99 (DYNALLOC) There are

Re: COBOL cob2 Unix compile and SVC99 (DYNALLOC)

2021-01-26 Thread Seymour J Metz
ERV.UA.EDU Subject: COBOL cob2 Unix compile and SVC99 (DYNALLOC) I put this out in the world in case anyone has the same issue in the future. I've been playing around with the z/OS Unix environment recently. One of the things I've been playing with is the _BPX_SHAREAS environment variable wh

COBOL cob2 Unix compile and SVC99 (DYNALLOC)

2021-01-26 Thread Frank Swarbrick
I put this out in the world in case anyone has the same issue in the future. I've been playing around with the z/OS Unix environment recently. One of the things I've been playing with is the _BPX_SHAREAS environment variable which allows multiple Unix processes to run in the same Unix address s

Re: RFE to expand Unix path length for DYNALLOC beyond 255 characters

2019-05-07 Thread Jerry Callen
ny limit at all. Hasn't anyone heard of malloc? :-) > The enhancement should apply to JCL allocation as well as DYNALLOC. Hmm, yet another code path. Though it might well be that fixing it in DYNALLOC would fix it for JCL as well. > Does any SVC 99 TU exceed 256 characters? Is thi

Re: RFE to expand Unix path length for DYNALLOC beyond 255 characters

2019-05-07 Thread Paul Gilmartin
ng, including all directory names, file names, and separating slashes. ... The enhancement should apply to JCL allocation as well as DYNALLOC. Does any SVC 99 TU exceed 256 characters? Is this a relic of the MVC instruction? I'll suggest here, but it might belong in a separate RFE: o Re

RFE to expand Unix path length for DYNALLOC beyond 255 characters

2019-05-07 Thread Jerry Callen
I recently discovered that the maximum path length for dynamic allocation key 8017 (Unix PATH name) is 255 characters, in spite of the fact that the text unit length field is 16 bits. While most "human generated" path lengths will not be that long, software generated paths can easily exceed that. A

Re: DYNALLOC

2018-07-10 Thread Hobart Spitz
It beats the alternative. The more I proofread, the more improvements I make and the longer my posts get. 8-D OREXXMan JCL is the buggy whip of 21st century computing. Stabilize it. Put Pipelines in the z/OS base. Would you rather process data one character at a time (Unix/C style), or one rec

AW: Re: DYNALLOC

2018-07-10 Thread Peter Hunkeler
>> A minute AFTER I hit "send" for my message I saw the error. >> >I do my best proofreading *after* I press the key... I'm excellent at finding my typos when I read my post after it is echoed back to me. -- Peter Hunkeler --

Re: DYNALLOC

2018-07-06 Thread Seymour J Metz
9:51 AM To: IBM-MAIN@listserv.ua.edu Subject: Re: DYNALLOC On 7/6/2018 6:23 AM, Bill Ogden wrote: > > A minute AFTER I hit "send" for my message I saw the error. I do my best proofreading *after* I press the key... -- Phoenix Software International Edward E. Jaffe 831 Parkvie

Re: DYNALLOC

2018-07-06 Thread Elardus Engelbrecht
Ed Jaffe wrote: >On 7/6/2018 6:23 AM, Bill Ogden wrote: >> A minute AFTER I hit "send" for my message I saw the error. >I do my best proofreading *after* I press the key... Or, AFTER you pressed that famous key "ENTER", you see you are making a career ending 6-letter-word mistake... After you

Re: DYNALLOC

2018-07-06 Thread Ed Jaffe
On 7/6/2018 6:23 AM, Bill Ogden wrote: A minute AFTER I hit "send" for my message I saw the error. I do my best proofreading *after* I press the key... -- Phoenix Software International Edward E. Jaffe 831 Parkview Drive North El Segundo, CA 90245 https://www.phoenixsoftware.com/ --

Re: DYNALLOC

2018-07-06 Thread Bill Ogden
>Date:Thu, 5 Jul 2018 09:48:03 -0500 >From:Bill Godfrey > >Your A(TU1) should be A(TUPL), and TUPL should look like this: > >TUPL DCA(TU1,TU2,TU3,TU4,TU5,TU6,TU7,TU8+X'8000) Thank you! IBM-MAIN is magical. A minute AFTER I hit "send" for my message I saw the error. If the mag

Re: DYNALLOC

2018-07-05 Thread Steve Smith
DYNALLOC certainly does not require AMODE 24, or RMODE 24. The coding technique used in Bill Ogden's and Eileen's examples do. Bill Godfrey's works in either 24 or 31 modes. He also identified the main problem. FWIW, there's no need to write code that looks like it was e

Re: DYNALLOC

2018-07-05 Thread Seymour J Metz
AFAIK only DAIR requires AMODE(24), not DYNALLOC. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Barkow, Eileen Sent: Thursday, July 5, 2018 11:42 AM To: IBM-MAIN@listserv.ua.edu Subject: Re

Re: DYNALLOC

2018-07-05 Thread Barkow, Eileen
Are you running with AMODE=24? I think that you still need to, from looking at my old DYNALLOC pgms. DS 0F DYNBLKS EQU * RBPOINT DC A(RBS) ADR REQ BLOCK PASSED IN R1 ORG RBPOINT S99RBP DSECT DCX'80' HI ORDER BIT MUST BE ON DS

Re: DYNALLOC

2018-07-05 Thread Tom Marchant
gt; >-Original Message- >From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On >Behalf Of Bill Godfrey >Sent: Thursday, July 5, 2018 7:48 AM >To: IBM-MAIN@LISTSERV.UA.EDU >Subject: Re: DYNALLOC > >On Thu, 5 Jul 2018 10:29:22 -0400, Bill Ogden wrote

Re: DYNALLOC

2018-07-05 Thread Charles Mills
Should not be a S0C4 but don't you want pointers to ALL of the text units? Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Bill Godfrey Sent: Thursday, July 5, 2018 7:48 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: DYN

Re: DYNALLOC

2018-07-05 Thread Bill Godfrey
On Thu, 5 Jul 2018 10:29:22 -0400, Bill Ogden wrote: >It has been a few decades since I used DYNALLOC and I am now doing >something stupid that results in an 0C4 somewhere in never-never land. Can >someone give me a clue without going to much trouble? (DRB and DRBPTR are >

DYNALLOC

2018-07-05 Thread Bill Ogden
It has been a few decades since I used DYNALLOC and I am now doing something stupid that results in an 0C4 somewhere in never-never land. Can someone give me a clue without going to much trouble? (DRB and DRBPTR are on full word boundaries.) LA1,DRBPTR DYNALLOC

Re: Disable DYNALLOC?

2017-12-22 Thread John McKown
On Fri, Dec 22, 2017 at 1:12 AM, Vernooij, Kees (ITOPT1) - KLM < kees.verno...@klm.com> wrote: > Forgotten to do a FREEBUFF dcbaddr after CLOSE? > ​No way to do that in a VS COBOL II program.​ (long ago) > > Grtn, > Kees. > -- I have a theory that it's impossible to prove anything, but I can

Re: Disable DYNALLOC?

2017-12-21 Thread Vernooij, Kees (ITOPT1) - KLM
Forgotten to do a FREEBUFF dcbaddr after CLOSE? Grtn, Kees. > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of John McKown > Sent: 21 December, 2017 18:02 > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Disable DYN

Re: Disable DYNALLOC?

2017-12-21 Thread Steve Beaver
The whole OS uses Dynalloc everywhere Sent from my iPhone Sorry for the autocorrect issues > On Dec 21, 2017, at 17:10, Frank Swarbrick > wrote: > > Doesn't CICS itself primarily use dynamic allocation for most files? > > From: IBM Ma

Re: Disable DYNALLOC?

2017-12-21 Thread Frank Swarbrick
Doesn't CICS itself primarily use dynamic allocation for most files? From: IBM Mainframe Discussion List on behalf of Edward Gould Sent: Wednesday, December 20, 2017 11:14 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Disable DYNALLOC? > On Dec 20, 2017,

Re: Disable DYNALLOC?

2017-12-21 Thread Jesse 1 Robinson
Maybe I'm just too darned skeptical. The claim of a historical relationship between DYNALLOC and MVS Unix is not merely anachronistic; it's patently absurd. I used a fully documented DYNALLOC as a new system programmer in the late 1970s. When a grand case for any proposition is ma

Re: Disable DYNALLOC?

2017-12-21 Thread John McKown
On Thu, Dec 21, 2017 at 11:00 AM, Seymour J Metz wrote: > Yes, you could disable DYNALLOC in production jobs, but it would be a CLM. > A good rule of thumb is to not disable anything unless you thoroughly > understand the need and consequences, you have a solid rollout plan and you

Re: Disable DYNALLOC?

2017-12-21 Thread John McKown
On Thu, Dec 21, 2017 at 10:50 AM, Seymour J Metz wrote: > It's not just DYNALLOC, it's *any* code that explicitly or implicitly > waits. Who wrote the transaction that issued the SVC 99? Why didn't he run > it in a subtask? Presumably he is also doing OPEN, which w

Re: Disable DYNALLOC?

2017-12-21 Thread Seymour J Metz
Yes, you could disable DYNALLOC in production jobs, but it would be a CLM. A good rule of thumb is to not disable anything unless you thoroughly understand the need and consequences, you have a solid rollout plan and you have a solid fallback plan. But it's not my dog. -- Shmuel (Seym

Re: Disable DYNALLOC?

2017-12-21 Thread Seymour J Metz
du/~smetz3 From: IBM Mainframe Discussion List on behalf of Roger W. Suhr (GMail) Sent: Wednesday, December 20, 2017 5:43 PM To: IBM-MAIN@listserv.ua.edu Subject: Re: Disable DYNALLOC? My 5 cents: Why do people always have to control everything. DYNALLOC is a beautiful thing. It

Re: Disable DYNALLOC?

2017-12-21 Thread Seymour J Metz
It's not just DYNALLOC, it's *any* code that explicitly or implicitly waits. Who wrote the transaction that issued the SVC 99? Why didn't he run it in a subtask? Presumably he is also doing OPEN, which would be a problem even without the DYNALLOC. -- Shmuel (Seymou

Re: Disable DYNALLOC?

2017-12-21 Thread Paul Schuster
IEFDB401 — Dynamic Allocation Input Validation Routine Exit allows you to fail a request. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Re: Disable DYNALLOC?

2017-12-21 Thread Steve Beaver
To disable DYNALLOC would be to cause MGMT to delete you job plain and simple -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of CM Poncelet Sent: Wednesday, December 20, 2017 7:25 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Disable

Re: Disable DYNALLOC?

2017-12-20 Thread Vernooij, Kees (ITOPT1) - KLM
Apart from the unreal idea to disable DYNALLOC fully, you have full control over the DYNALLOC functions via exit IEGDB401. We did and do beautiful things in it, like our own SMS-like volume pooling before we converted to SMS. Grtn, Kees. > -Original Message- > From: IBM Mai

Re: Disable DYNALLOC?

2017-12-20 Thread Edward Gould
>>because of MVS UNIX. ... >> >> Disregard the anachronism in the last sentence. If, hypothetically, >> DYNALLOC except by initiator is so harmful as to be prohibited in >> production jobs, is there any way to do so? If it were possible, >> what woul

Re: Disable DYNALLOC?

2017-12-20 Thread Russell Witt
resource management controls. Russell (speaking for myself, not my employeer) Witt -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Wednesday, December 20, 2017 4:38 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Disabl

Re: Disable DYNALLOC?

2017-12-20 Thread CM Poncelet
SVC 99 (aka macro DYNALLOC) allows doing much more than dataset (de)allocations via its TUP list parms.   So yes - it should always remain available for use in systems programs, irrespective of its being hypothetically "harmful" in production jobs (whatever they are).   My ha'

Re: Disable DYNALLOC?

2017-12-20 Thread Farley, Peter x23353
Peter -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Wednesday, December 20, 2017 5:38 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Disable DYNALLOC? From a recent thread (rant?) in ASSEMBLER-LIST: ... Do you sta

Re: Disable DYNALLOC?

2017-12-20 Thread Roger W. Suhr (GMail)
My 5 cents: Why do people always have to control everything. DYNALLOC is a beautiful thing. It has to be used properly, for sure and it's not a "one size fits all" tool, but it is very useful. If you really have to control all allocations, then look into using and exit (DAD

Disable DYNALLOC?

2017-12-20 Thread Paul Gilmartin
quirements, bypasses JES3 resource management and potentially poses a production security risk. TSO has the alloc command which can easily be used in clists. It exists because of MVS UNIX. ... Disregard the anachronism in the last sentence. If, hypothetically, DYNALLOC except by initi

Re: DFSORT DYNALLOC/DYNAPCT question

2016-07-26 Thread Lizette Koehler
What I do for my very large DB2 SAS Processes is use the following //DFSPARM DD DISP=SHR,DSN=SYSS.DFSORT.CNTLLIB(DFSORT) In the DFSORT member I just have coded OPTION DYNALLOC=(,32) I have removed all SORTWKxx or variation (you may be using SASSWKxx) in the SAS Proc or MXG Proc

DFSORT DYNALLOC/DYNAPCT question

2016-07-26 Thread Bill Woodger
OK, but you don't have to do it for everything. Most things aren't giving you a problem. Small files aren't the same issue as larger ones. Diversion between actual amount of data and estimated amount of data affects performance, not just workspace allocation. I'd ask IBM DFSORT to look at one o

Re: DFSORT DYNALLOC/DYNAPCT question

2016-07-26 Thread Vernooij, CP (ITOPT1) - KLM
from incorrect info more often than it does now, is simpler. Kees. -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Bill Woodger Sent: 26 July, 2016 11:31 To: IBM-MAIN@LISTSERV.UA.EDU Subject: DFSORT DYNALLOC/DYNAPCT question Which is

DFSORT DYNALLOC/DYNAPCT question

2016-07-26 Thread Bill Woodger
Which is why I'm suggesting providing additional information on the DFSPARM DD. Because if DFSORT is not reading the data, it doesn't know so much. You can fill in some gaps for it. Allowing DFSORT to do the allocations better is probably an advantage over allowing DFSORT to complete allocations

Re: DFSORT DYNALLOC/DYNAPCT question

2016-07-26 Thread Vernooij, CP (ITOPT1) - KLM
-MAIN@LISTSERV.UA.EDU Subject: DFSORT DYNALLOC/DYNAPCT question You could look at using DFSPARM in your SAS steps, https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.icea100/dfsparm.htm When invoked from another program, and when that other program is reading/providing the

DFSORT DYNALLOC/DYNAPCT question

2016-07-26 Thread Bill Woodger
You could look at using DFSPARM in your SAS steps, https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.icea100/dfsparm.htm When invoked from another program, and when that other program is reading/providing the data to DFSORT, you can help DFSORT out by providing things li

Re: DFSORT DYNALLOC/DYNAPCT question

2016-07-25 Thread Vernooij, CP (ITOPT1) - KLM
I will raise DYNALLOC to 6 and also set DYNAPCT to 100, to help DFSORT to handle large sorts that were provided with incorrect size info. Regards, Kees. -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of David Betten Sent: 26 July, 2016

Re: DFSORT DYNALLOC/DYNAPCT question

2016-07-25 Thread David Betten
The dynamic allocation space calculations are going to be based on the DYNALLOC number. As a simple example, if DFSORT calculates that it needs 6,000 cylinders of work space, and DYNALLOC=4 with DYNAPCT=50, it will need 4 volumes with at least 1500 cylinders of free space. But with DYNALLOC=6

DFSORT DYNALLOC/DYNAPCT question

2016-07-25 Thread Vernooij, CP (ITOPT1) - KLM
Hello DFSORT experts, The DYNALLOC description says that the default number of SORTWKs is 4 and not to specify an unnecessary high number. The DYNAPCT parameter allocates an extra number of SORTWKs to be used in case the DYNALLOC number of SORTWKs appears to be not enough. I can: a

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-08 Thread Paul Gilmartin
On 2014-09-08 15:35, Farley, Peter x23353 wrote: > >* ( int ** ) & ip.miscitems = &miscitems; /* Try casting on the left. */ > > That solution may introduce unnecessary reference-and-dereference > instructions, depending on the optimization level at compile time. I find it > far easier

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-08 Thread Farley, Peter x23353
-Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Monday, September 08, 2014 5:23 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC On Mon, 8 Sep 2014 14:02:17 -0700, Janet Graff

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-08 Thread Farley, Peter x23353
In the C/C++ Run-Time Library Reference (V1.13 link here, watch the wrap, search for __miscitems in the page): http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/EDCLB1C0/3.206.3?SHELF=cbcbs1c0&DT=20110617180047&CASE= The "__miscitems" field in the dynalloc parameter

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-08 Thread Paul Gilmartin
On Mon, 8 Sep 2014 14:02:17 -0700, Janet Graff wrote: >I have it working now but I have to say, examples of calling dynalloc() from C >code using text units is a decidedly badly documented interface. > >For anyone who attempts this in the future, here is a sample, this subroutine &

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-08 Thread Janet Graff
I have it working now but I have to say, examples of calling dynalloc() from C code using text units is a decidedly badly documented interface. For anyone who attempts this in the future, here is a sample, this subroutine takes a char * containing the intended ddname like, "DD:LOG01&

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-06 Thread Paul Gilmartin
On Sat, 6 Sep 2014 17:31:35 -0700, Alan Young wrote: > >No, dynalloc() will use text units in addition to the mapped parameters. > >http://pic.dhe.ibm.com/infocenter/zos/v1r13/index.jsp?topic=%2Fcom.ibm.zos.r13.bpxbd00%2Fdynalloc.htm >: > >__miscitems > >char * __ptr32

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-06 Thread Alan Young
Paul Gilmartin wrote: On Sat, 6 Sep 2014 13:16:53 -0700, Alan Young wrote: Sam Siegel wrote: My error ... I thought that text units could be added to a dynalloc request. After reading the doc, dynalloc appears to be limited to a subset of svc99 functions. You might have you use the

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-06 Thread Paul Gilmartin
On Sat, 6 Sep 2014 13:16:53 -0700, Alan Young wrote: >Sam Siegel wrote: >> My error ... I thought that text units could be added to a dynalloc >> request. After reading the doc, dynalloc appears to be limited to a subset >> of svc99 functions. >> >> You might

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-06 Thread Alan Young
Sam Siegel wrote: My error ... I thought that text units could be added to a dynalloc request. After reading the doc, dynalloc appears to be limited to a subset of svc99 functions. You might have you use the svc99() function and build your own text units. You can specify text units in the

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-06 Thread Sam Siegel
My error ... I thought that text units could be added to a dynalloc request. After reading the doc, dynalloc appears to be limited to a subset of svc99 functions. You might have you use the svc99() function and build your own text units. On Sat, Sep 6, 2014 at 10:04 AM, Phil Smith wrote

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-06 Thread Phil Smith
Sam Siegel wrote: >Look at the assembler service guide. Dynalloc () is just a wrapper which >calls svc99. Right...we know that. Of course SVC 99 supports this; the question was: >Does anyone know whether dynalloc() supports FREE=CLOSE,SPIN=UNALLOC? So I guess we're confused

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-05 Thread Roger Lowe
On Fri, 5 Sep 2014 18:54:59 -0700, Janet Graff wrote: >I have a Started Task with a log file. I'd like to SPIN off the log files >from my C program and allow the users to delete them when there is too much >spool output or the log file is no longer needed. > >The C program

Re: Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-05 Thread Sam Siegel
Look at the assembler service guide. Dynalloc () is just a wrapper which calls svc99. On Sep 5, 2014 6:55 PM, "Janet Graff" < 004dc9e91b6d-dmarc-requ...@listserv.ua.edu> wrote: > I have a Started Task with a log file. I'd like to SPIN off the log files > from

Dynalloc with FREE=CLOSE,SPIN=UNALLOC

2014-09-05 Thread Janet Graff
I have a Started Task with a log file. I'd like to SPIN off the log files from my C program and allow the users to delete them when there is too much spool output or the log file is no longer needed. The C program is calling dynalloc() to allocate the file but I don't see any flag

Re: SYS1.IMAGELIB - dynalloc

2014-08-17 Thread Paul Gilmartin
On Sun, 17 Aug 2014 08:17:48 -0500, John McKown wrote: >On Sun, Aug 17, 2014 at 7:56 AM, Mil Hashoul wrote: > >> 03A8 0936 request block extension has a bad format. Corresponding >> Message: IKJ56231I > >My immediate thought is that the library is fine. The problem i

Re: SYS1.IMAGELIB - dynalloc

2014-08-17 Thread Mil Hashoul
: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Mil Hashoul > Sent: Sunday, August 17, 2014 2:56 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: SYS1.IMAGELIB - dynalloc > > Hi, > > I am trying to do the dynamical allocation SVC99 for the library > SYS1.IMA

Re: SYS1.IMAGELIB - dynalloc

2014-08-17 Thread Charles Mills
rom: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Mil Hashoul Sent: Sunday, August 17, 2014 2:56 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: SYS1.IMAGELIB - dynalloc Hi, I am trying to do the dynamical allocation SVC99 for the library SYS1.IMAGELIB, and I got the foll

Re: SYS1.IMAGELIB - dynalloc

2014-08-17 Thread Mil Hashoul
I do not think so, since I use the same code for another datasets and it work fine;-) can you share the attributes at your system? Milad Hashoul Team Leader BMC Software "A ship in the harbor is safe, but that is not what ships are built for" On Sun, Aug 17, 2014 at 4:17 PM, John McKown wrote

Re: SYS1.IMAGELIB - dynalloc

2014-08-17 Thread John McKown
On Sun, Aug 17, 2014 at 7:56 AM, Mil Hashoul wrote: > Hi, > > I am trying to do the dynamical allocation SVC99 for the library > SYS1.IMAGELIB, and I got the following RC: > RC=12 ERR=03A8 > This error means that: > 03A8 0936 request block extension has a bad format. Corresponding >

SYS1.IMAGELIB - dynalloc

2014-08-17 Thread Mil Hashoul
Hi, I am trying to do the dynamical allocation SVC99 for the library SYS1.IMAGELIB, and I got the following RC: RC=12 ERR=03A8 This error means that: 03A8 0936 request block extension has a bad format. Corresponding Message: IKJ56231I Any one can send me what is th

Re: DYNALLOC reusing DUMMY

2013-09-21 Thread Shmuel Metz (Seymour J.)
In <7754700783082549.wa.paulgboulderaim@listserv.ua.edu>, on 09/18/2013 at 06:06 PM, Paul Gilmartin said: >Is "in use" synonymous with "open"? No. From OS/VS2 System Programming Library: Job Management VS2 Release 3, GC28-0627-0: "Using an Existing Allocation When successive processes u

Re: DYNALLOC reusing DUMMY

2013-09-18 Thread Alan Young
Paul Gilmartin wrote: Is "in use" synonymous with "open"? Squirrely either way. How can the user control the "in use" status? Does either TSO ALLOCATE or BPXWDYN provide a keyword? They are not the same. You can have a dataset closed, allocated to the step and the in use attribute s

Re: DYNALLOC reusing DUMMY

2013-09-18 Thread Paul Gilmartin
On Wed, 18 Sep 2013 17:10:12 -0400, Shmuel Metz (Seymour J.) wrote: > >on 09/18/2013 at 01:52 PM, Thomas Berg said: > >>OTOH, there is no dataset in action here. Just a ddname plus the >>dummy function... > >Equivalent to DSN('NULLFILE') > >The key point is reusing an allocation that is not marke

Re: DYNALLOC reusing DUMMY

2013-09-18 Thread Shmuel Metz (Seymour J.)
In , on 09/18/2013 at 01:52 PM, Thomas Berg said: >OTOH, there is no dataset in action here. Just a ddname plus the >dummy function... Equivalent to DSN('NULLFILE') The key point is reusing an allocation that is not marked as not in use. That's squirrely even if it's documented somewhere.

Re: DYNALLOC reusing DUMMY

2013-09-18 Thread Thomas Berg
> -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Shmuel Metz (Seymour J.) > Sent: Wednesday, September 18, 2013 4:30 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: DYNALLOC reusing DUMMY > &

Re: DYNALLOC reusing DUMMY

2013-09-17 Thread Shmuel Metz (Seymour J.)
In <6532243242202950.wa.paulgboulderaim@listserv.ua.edu>, on 09/17/2013 at 09:41 AM, Paul Gilmartin said: >You didn't read my code example. You're right; I didn't notice that the subroutine call was betwwen the allocate and the unallocate. 25.2.2.4 Using an Existing Allocation to Fulfi

Re: DYNALLOC reusing DUMMY

2013-09-17 Thread Paul Gilmartin
was allocated? > You didn't read my code example. Or perhaps you simply don't understand the meaning of the word "before". >>Why does DYNALLOC do that? > >Because you told it to. > No. -- gil

Re: DYNALLOC reusing DUMMY

2013-09-17 Thread Shmuel Metz (Seymour J.)
ce? I'd hardly call that a usurpation. >I suppose I could use BPXWDYN 'info ...' before the second call; >determine whether the returned DD2 was previously allocated, If you freed it then why would "info" tell you that it was allocated? >Why does DYNALLOC do tha

Re: DYNALLOC reusing DUMMY

2013-09-16 Thread John McKown
/* do other stuff */ > call BPXWDYN 'free DD('DD2')' /* Clean up like a good camper. */ > return( RC ) > > ... It seems that in the second call to BPXWDYN, DYNALLOC returns the > same DDNAME for DD2 that it did for DD1. So the "free" u

DYNALLOC reusing DUMMY

2013-09-16 Thread Paul Gilmartin
ther stuff */ call BPXWDYN 'free DD('DD2')' /* Clean up like a good camper. */ return( RC ) ... It seems that in the second call to BPXWDYN, DYNALLOC returns the same DDNAME for DD2 that it did for DD1. So the "free" usurps the DDNAME in use by the

Re: BPXWDYN missing dynalloc key.

2012-12-11 Thread Paul Gilmartin
On Tue, 11 Dec 2012 19:56:39 -0600, Walt Farrell wrote: > >Given that it's BPX... wouldn't the MVS-OE mailing list be likely to get you >closer to the developer at IBM? > Well, yes, and I believe "the developer at IBM" doesn't frequent IBM-MAIN, and I'd expect that John M. knows that. OTOH, it's

Re: BPXWDYN missing dynalloc key.

2012-12-11 Thread Walt Farrell
On Mon, 10 Dec 2012 12:04:00 -0600, McKown, John wrote: >I double checked and SVC 99 has two keys, DALEXPDT & DALEXPDL, to assign >expiration dates. It would be very helpful to me if BPXWDYN could use these as >well because I want the equivalent of EXPDT=99000 for CA-1 to do "catalog >control

Re: BPXWDYN missing dynalloc key.

2012-12-11 Thread Lizette Koehler
John, See if you can run TMSUPDTE in your process. TMSUPDTE can update your expiration dates to CA1. I use it in batch processes rather than use the CA1 ISPF interface. Lizette > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf > Of

Re: BPXWDYN missing dynalloc key.

2012-12-11 Thread McKown, John
A.EDU] > On Behalf Of Ken Brick > Sent: Monday, December 10, 2012 9:53 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: BPXWDYN missing dynalloc key. > > On 11/12/2012 06:23 AM, McKown, John wrote: > > Good point. My desire is specific: use Co:Z Data Set Pipes' "tod

Re: BPXWDYN missing dynalloc key.

2012-12-10 Thread Ken Brick
On 11/12/2012 06:23 AM, McKown, John wrote: Good point. My desire is specific: use Co:Z Data Set Pipes' "todsn" command to write each file in a subdirectory onto its own virtual tape. So your considerations for VOL=REF and the like are not important for my usage needs. And is why I can't easily

Re: BPXWDYN missing dynalloc key.

2012-12-10 Thread McKown, John
t: Monday, December 10, 2012 12:53 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: BPXWDYN missing dynalloc key. > > Nope. Some years ago, I whined in MVS-OE about lack of RETPD, and it > was generously provided. But in those days of yore, BPXWDYN support > was more casual. Nowadays, EXPDT

Re: BPXWDYN missing dynalloc key.

2012-12-10 Thread Paul Gilmartin
BPXWDYN because it accepts its parameters via a "-x" switch. > >Have I missed something in the documentation? > Nope. Some years ago, I whined in MVS-OE about lack of RETPD, and it was generously provided. But in those days of yore, BPXWDYN support was more casual. Nowadays, EXPDT

Re: BPXWDYN missing dynalloc key.

2012-12-10 Thread Scott Ford
John, I just looked through the doc and I use BPXWDYN a lot, i do not see any references to creating dates or checking Scott ford www.identityforge.com Tell me and I'll forget; show me and I may remember; involve me and I'll understand. - Chinese Proverb On Dec 10, 2012, at 1:04 PM, "McKown

BPXWDYN missing dynalloc key.

2012-12-10 Thread McKown, John
I double checked and SVC 99 has two keys, DALEXPDT & DALEXPDL, to assign expiration dates. It would be very helpful to me if BPXWDYN could use these as well because I want the equivalent of EXPDT=99000 for CA-1 to do "catalog control" on tapes which I create using BPXWDYN. Well, I'm actually usi