Dynamic Allocation-Related Question
- From: "OppThumb" <calahanj@xxxxxxxxx>
- Date: 31 May 2006 07:02:43 -0700
Hi,
To explain up front, I'm working from examples given to me a long time
ago. I have a subroutine program (written in Assembler) to invoke SVC
99 and dynamically allocate files. Even though it was written years
ago, it's still a pretty good little utility program to handle all
types of files on all types of devices.
I also have a copy of a COBOL program that calls the subroutine,
specifically showing me how to allocate output files. Here's the catch
-- it appears that the program only allocates empty output files which
in my example were populated later, in another program.
Does anyone have an example of how to write to a dynamically allocated
output file in the same program where it was allocated? Assuming I have
the DDNAME, DSN, and any other file-related info available to me
(obviously, not in the FILE SECTION), how would I set up the OPEN,
CLOSE and WRITE statements? Can this even be done?
Thanks,
John
.
- Follow-Ups:
- Re: Dynamic Allocation-Related Question
- From: William M. Klein
- Re: Dynamic Allocation-Related Question
- From: Pépé le Pew
- Re: Dynamic Allocation-Related Question
- Prev by Date: Re: PIC P put to real use
- Next by Date: Re: Accept / Display - an "environment variables
- Previous by thread: Microfocus 4.0.38 problem running in XP
- Next by thread: Re: Dynamic Allocation-Related Question
- Index(es):
Relevant Pages
|