View previous topic :: View next topic
|
Author |
Message |
anoop_mf
New User
Joined: 27 Sep 2005 Posts: 6
|
|
|
|
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 |
|
|
iknow
Active User
Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
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 |
|
|
shivani_tech Warnings : 2 New User
Joined: 08 Jan 2006 Posts: 22 Location: UNITED KINGDOM
|
|
|
|
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 |
|
|
chandan.inst
Active User
Joined: 03 Nov 2005 Posts: 275 Location: Mumbai
|
|
|
|
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 |
|
|
|