View previous topic :: View next topic
|
Author |
Message |
nal_satish
New User
Joined: 20 Jun 2005 Posts: 26 Location: Hyderabad
|
|
|
|
Hi ,
Regarding INDEX variable used in occurs clause
05 Var1 occurs 5 times indexed by N
06 var2 pic x(2) ----------> First
05 Var3 occurs 5 times
06 Var4 pic x(2) ----------->Second
Can the INDEX variable declared In First can be used in the Second Declaration
can it be used if picture clause is Different ????
Can some one help me out regarding this |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
Hi,
An index name (N,in your code) need not be declared separately.Also PICTURE clause is not specified when an index data item is declared ie when the USAGE is index.
Regards,
Sridevi. |
|
Back to top |
|
|
nal_satish
New User
Joined: 20 Jun 2005 Posts: 26 Location: Hyderabad
|
|
|
|
Hi Sridevi,
U Didnot get my Question.
I am not asking regarding the declaration of Index
I am asking that the index in first which is pointing to the first can be used for the second occurs clause
Thanks & Regards,
Satish.N |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
Hi,
Even now your question is NOT that clear.But still...assuming you spoke about index names.Yep,index name of one table can be used in another table.
Regards,
Sridevi. |
|
Back to top |
|
|
nal_satish
New User
Joined: 20 Jun 2005 Posts: 26 Location: Hyderabad
|
|
|
|
Hi,
Suppose using index-1 i have searched till some 5 th occurence
the same index can i use parallely in another search also .
Still not clear can u call me at 9885377332
Satish. |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
Another table's index name can be used in search's VARYING option.So ,I guess,you can use index name from one search to another.
Sorry,I wish/prefer to communicate only through this website.
Regards,
Sridevi. |
|
Back to top |
|
|
naga821
New User
Joined: 16 Mar 2005 Posts: 5
|
|
|
|
Hi
could u let me for this wht is Diff between cobol and vscobol11 query |
|
Back to top |
|
|
thanooz
New User
Joined: 28 Jun 2005 Posts: 99
|
|
|
|
hi satish
in your case you can do it
only that the index variable can be used for another table means
if both table description have same number of element,and the element tables have same length.
thank's
thanooz |
|
Back to top |
|
|
|