Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Passing data between batch programs
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


Report this thread to moderator Post Follow-up to this message
Old Post
tomanepb
04-03-07 12:55 PM


Re: Passing data between batch programs
the 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



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
04-03-07 12:55 PM


Re: Passing data between batch programs
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:
> 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


Report this thread to moderator Post Follow-up to this message
Old Post
tomanepb
04-03-07 12:55 PM


Re: Passing data between batch programs
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:
> 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


Report this thread to moderator Post Follow-up to this message
Old Post
tomanepb
04-03-07 12:55 PM


Re: Passing data between batch programs
On 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.


Report this thread to moderator Post Follow-up to this message
Old Post
Alistair
04-03-07 11:55 PM


Re: Passing data between batch programs
In 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



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
04-04-07 02:55 AM


Re: Passing data between batch programs
On 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




Report this thread to moderator Post Follow-up to this message
Old Post
tlmfru
04-04-07 02:55 AM


Re: Passing data between batch programs
I 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 
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
04-04-07 02:55 AM


Re: Passing data between batch programs
Depending 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.










Report this thread to moderator Post Follow-up to this message
Old Post
Michael Mattias
04-04-07 12:55 PM


Re: Passing data between batch programs
On 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.


Report this thread to moderator Post Follow-up to this message
Old Post
Alistair
04-04-07 12:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:05 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.