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
 

 

Can we pass a table from one pgm to another using CALL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
anoop_mf

New User


Joined: 27 Sep 2005
Posts: 6

PostPosted: Wed Dec 14, 2005 7:33 pm    Post subject: Can we pass a table from one pgm to another using CALL
Reply with quote

hi
The question is

Can we pass a table from one pgm to another using CALL statement?

If yes then How?

What is the difference between passing through index and pass through subscript?

I know the basic difference between theses but not in respect with passing.

Thanks & regards
Back to top
View user's profile Send private message

iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Wed Dec 14, 2005 8:29 pm    Post subject: Answers to PASSING TABLES
Reply with quote

Hi ALL,


Quote:
The question is

Can we pass a table from one pgm to another using CALL statement?

If yes then How?

What is the difference between passing through index and pass through subscript?

I know the basic difference between theses but not in respect with passing.


Check the answers


Quote:
1)Can we pass a table from one pgm to another using CALL statement?


I think this is possible when you make use of COPY instead of CALL.

Search our forum because similar topic has been discussed.

Quote:
What is the difference between passing through index and pass through subscript?


A subscript is a working storage data definition item, typically a PIC (999) where a value must be moved to the subscript and then incremented or decremented by ADD TO and SUBTRACT FROM statements. An index is a register item that exists outside the program's working storage. You SET an index to a value and SET it UP BY value and DOWN BY value.

It's not possible to pass an index via linkage. The index is not part of the calling programs working storage.


Hope this helps.
Back to top
View user's profile Send private message
shivani_tech
Warnings : 2

New User


Joined: 08 Jan 2006
Posts: 22
Location: UNITED KINGDOM

PostPosted: Sun Jan 15, 2006 2:25 pm    Post subject: queries in occurs clause...........?
Reply with quote

i know how to define a fixed length table but when the case is variable length we use occurs depending on clause.........but its application i cant understand.can anyone explain me this topic.
thanks and regards
shivani
Back to top
View user's profile Send private message
chandan.inst

Active User


Joined: 03 Nov 2005
Posts: 269
Location: Mumbai

PostPosted: Wed Feb 01, 2006 9:58 pm    Post subject: Re: Can we pass a table from one pgm to another using CALL
Reply with quote

Hi all,
we can call table using subscript but we cant call table using index.
We define subscript in W-S section as separate elementary item so that we can use subscript while calling
but we cant use index for the same
regards,
chandan
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm


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