Code Comments
Programming Forum and web based access to our favorite programming groups.Hi I'm setting up a batch routine and, I need to pass data between two consecutive programs. How can I do it? In CICS with the "commareas" it's easy but, in batch I just coudn't find how to do it. Can anyone help me please? Thanks Ant=F3nio
Post Follow-up to this messagethe usual way to do this (in an IBM mainframe environment) is via a temporar y file; write it in the first program and read it in the next one. -- Bill Klein wmklein <at> ix.netcom.com "tomanepb" <tomanepb@gmail.com> wrote in message news:1175599226.892453.165080@p15g2000hsd.googlegroups.com... Hi I'm setting up a batch routine and, I need to pass data between two consecutive programs. How can I do it? In CICS with the "commareas" it's easy but, in batch I just coudn't find how to do it. Can anyone help me please? Thanks António
Post Follow-up to this messageYes, that is the usual way to do it. But you have to set up JCL in order to handle it. I was thinking of something like the CICS commareas or systems areas (CWA or TWA) Ant=F3nio William M. Klein escreveu: > the usual way to do this (in an IBM mainframe environment) is via a tempo= rary > file; write it in the first program and read it in the next one. > > -- > Bill Klein > wmklein <at> ix.netcom.com > "tomanepb" <tomanepb@gmail.com> wrote in message > news:1175599226.892453.165080@p15g2000hsd.googlegroups.com... > Hi > I'm setting up a batch routine and, I need to pass data between two > consecutive programs. > How can I do it? > In CICS with the "commareas" it's easy but, in batch I just coudn't > find how to do it. > Can anyone help me please? > > Thanks > > Ant=F3nio
Post Follow-up to this messageYes, that is the usual way to do it. But you have to set up JCL in order to handle it. I was thinking of something like the CICS commareas or systems areas (CWA or TWA) Ant=F3nio William M. Klein escreveu: > the usual way to do this (in an IBM mainframe environment) is via a tempo= rary > file; write it in the first program and read it in the next one. > > -- > Bill Klein > wmklein <at> ix.netcom.com > "tomanepb" <tomanepb@gmail.com> wrote in message > news:1175599226.892453.165080@p15g2000hsd.googlegroups.com... > Hi > I'm setting up a batch routine and, I need to pass data between two > consecutive programs. > How can I do it? > In CICS with the "commareas" it's easy but, in batch I just coudn't > find how to do it. > Can anyone help me please? > > Thanks > > Ant=F3nio
Post Follow-up to this messageOn 3 Apr, 13:05, "tomanepb" <toman...@gmail.com> wrote: > Yes, that is the usual way to do it. > But you have to set up JCL in order to handle it. > I was thinking of something like the CICS commareas or systems areas > (CWA or TWA) > > Ant=F3nio > > William M. Klein escreveu: > > > porary > > > > > - Show quoted text - Set up a 01 level data item in WORKING-STORAGE SECTION of the calling program. Set up the same 01 level data item in the LINKAGE SECTION of the called program. In the calling program insert a statement like CALL called-program-name USING working-storage-item-data-name. In the called program add USING linkage-section-data-item-name on the PROCEDURE DIVISION statement. Compile the called program and then compile link-editing the called program into the calling program.
Post Follow-up to this messageIn a (IBM mainframe) batch system with multiple steps, there is NO "data are as" that remain from step to step (or at lest none that are documented as availa ble for application programmers). -- Bill Klein wmklein <at> ix.netcom.com "tomanepb" <tomanepb@gmail.com> wrote in message news:1175601962.912047.144750@n59g2000hsh.googlegroups.com... Yes, that is the usual way to do it. But you have to set up JCL in order to handle it. I was thinking of something like the CICS commareas or systems areas (CWA or TWA) António William M. Klein escreveu: > the usual way to do this (in an IBM mainframe environment) is via a tempor ary > file; write it in the first program and read it in the next one. > > -- > Bill Klein > wmklein <at> ix.netcom.com > "tomanepb" <tomanepb@gmail.com> wrote in message > news:1175599226.892453.165080@p15g2000hsd.googlegroups.com... > Hi > I'm setting up a batch routine and, I need to pass data between two > consecutive programs. > How can I do it? > In CICS with the "commareas" it's easy but, in batch I just coudn't > find how to do it. > Can anyone help me please? > > Thanks > > António
Post Follow-up to this messageOn the old Univac O/S's there was a "preamble'" or "prologue" area for just this purpose: a data area assigned to the batch job that could be plugged or queried. This was one of the "sensible" concepts from IBM O/S's that was pirated; I'm surprised that it isn't available PL William M. Klein <wmklein@nospam.netcom.com> wrote in message news:MBBQh.196630$Wg6.34569@fe07.news.easynews.com... > In a (IBM mainframe) batch system with multiple steps, there is NO "data areas" > that remain from step to step (or at lest none that are documented as available > for application programmers). > > -- > Bill Klein
Post Follow-up to this messageI think that VSE had (probably still has) such an area for cross-program "communication" - but it hasn't ever been available under MVS or follow-on products - at least that I know of. -- Bill Klein wmklein <at> ix.netcom.com "tlmfru" <lacey@mts.net> wrote in message news:bSDQh.16838$Ng1.9026@newsfe19.lga... > On the old Univac O/S's there was a "preamble'" or "prologue" area for jus t > this purpose: a data area assigned to the batch job that could be plugged or > queried. This was one of the "sensible" concepts from IBM O/S's that was > pirated; I'm surprised that it isn't available > > PL > > > William M. Klein <wmklein@nospam.netcom.com> wrote in message > news:MBBQh.196630$Wg6.34569@fe07.news.easynews.com... > areas" > available > > >
Post Follow-up to this messageDepending the the 'size' of the info to be passed and whether or not it has to change between programs, JCL procedure parameters are available to all programs in the job.
Post Follow-up to this messageOn 3 Apr, 18:05, "Alistair" <alist...@ld50macca.demon.co.uk> wrote: > On 3 Apr, 13:05, "tomanepb" <toman...@gmail.com> wrote: > > > > > > > > emporary > > > > > > Set up a 01 level data item in WORKING-STORAGE SECTION of the calling > program. Set up the same 01 level data item in the LINKAGE SECTION of > the called program. In the calling program insert a statement like > > CALL called-program-name USING working-storage-item-data-name. > > In the called program add USING linkage-section-data-item-name on the > PROCEDURE DIVISION statement. > > Compile the called program and then compile link-editing the called > program into the calling program.- Hide quoted text - > > - Show quoted text - Damn, you are right. I made the mistake of reading the 'consecutive' as one program calling another. However, as you point out, under IBM DOS/VSE there was a program communication area. At one site I knew it as CROSSCOM but that may have been a site specific name.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.