Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

passing parametre without using linkage sectio

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
prakash_kul04

New User


Joined: 16 Dec 2005
Posts: 1

PostPosted: Wed Oct 11, 2006 10:25 am    Post subject: passing parametre without using linkage sectio
Reply with quote

Please anybody let me know how to pass data from calling programme to called programme without using Linkage section.
Back to top
View user's profile Send private message

surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Wed Oct 11, 2006 3:40 pm    Post subject: Re: passing parametre without using linkage sectio
Reply with quote

Hi,

Using Accept We can pass values.
In Jcl, We need to pass values thru Sysin.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1224
Location: Israel

PostPosted: Wed Oct 11, 2006 3:42 pm    Post subject:
Reply with quote

If your programs run under CICS, you can use a TS (Temporary Storage).
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Oct 12, 2006 4:18 am    Post subject:
Reply with quote

You can always use datasets of (temporary) files.

O.
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Oct 12, 2006 11:06 am    Post subject:
Reply with quote

Hi,
The requirement is to pass data from Calling program to called program.
That is the data will be dynamically changes in the execution. So we can't have it in JCL thru SYSIN.


There won't be any data transmission thru files between the called program and a calling program since we don;t include a step for executing the called progam.

Then how we are going to pass data??
I couldn't imagine icon_neutral.gif anyother way to pass data other than thru linkage section.

Can anybody can through some light on this??

~Vamsi
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Thu Oct 12, 2006 3:54 pm    Post subject: Re: passing parametre without using linkage sectio
Reply with quote

Sreevamsi,

We can pass data thru Accept to called program(subprogram).
Need to write Accept statement in called program.

This is like file handling in called program. File will be processed and the output will be passed to calling program. After completion of called program we need to restore output values, no need of input values, in such case we can pass Input from JCL using FILE or Sysin.

Anyway we will not write any step to execute called program in our JOB, calling program will be added to step.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Passing information through JCL as in... Pia Baruah JCL & VSAM 5 Wed May 25, 2016 2:22 pm
No new posts Confusion while passing data to a cal... amitc23 COBOL Programming 5 Mon Mar 07, 2016 12:36 pm
No new posts Number of parameters in Linkage kregen COBOL Programming 4 Wed Jan 27, 2016 5:13 pm
No new posts Passing parms when calling ISRSUPC(su... jasorn COBOL Programming 3 Mon Nov 16, 2015 12:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us