View previous topic :: View next topic
|
Author |
Message |
jamirahmad Currently Banned New User
Joined: 28 Nov 2006 Posts: 3 Location: pune
|
|
|
|
Hi,
I want to move a Table Index to a normal WS-Variable.
E.g.
MOVE TAB-IDX TO WS-IDX.
It might be possible that Index will go up to 13K.
Is it possible to do so?
If yes, Please suggest how.....and if not please provide any other way to do so....
- Jamirahmad. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Quote: |
I want to move a Table Index to a normal WS-Variable. |
Use SET instead of MOVE. |
|
Back to top |
|
|
jamirahmad Currently Banned New User
Joined: 28 Nov 2006 Posts: 3 Location: pune
|
|
|
|
Is it like below specified :
SET TAB-IDX TO WS-IDX.
It will SET value of TAB-IDX to WS-IDX. Is it correct?
If not could you please provide me an Example? That will be Helpful for me. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
examples are found in any cobol manual under procedure division, look for 'SET'. |
|
Back to top |
|
|
star_dhruv2000
New User
Joined: 03 Nov 2006 Posts: 87 Location: Plymouth, MN USA
|
|
|
|
Hi,
Following can be used for this
Code: |
01 WS-INDX USAGE IS INDEX.
SET WS-INDX TO INDEX. |
Variables with USAGE display cannot be used to hold Value of an index.
Cheers! |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
star_dhruv2000,
you have provided a very good example of why I told jamirahmad to read the manual. |
|
Back to top |
|
|
jamirahmad Currently Banned New User
Joined: 28 Nov 2006 Posts: 3 Location: pune
|
|
|
|
Thanks Dhruv and Dick for a Solution. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Quote: |
Thanks Dhruv and Dick for a Solution. |
Quote: |
I want to move a Table Index to a normal WS-Variable. |
I guess this was the original question. Was it Dhruv2000's solution that worked? I bet it was not what you wanted. In fact that post is completely irrational.
Dick's post after Dhruv2000's post was SARCASTIC.. You should have known that.
We encourage newbie's to look in to the manual because it will help them in solving their problems on their own. Spoon feeding won't do any good.
It is a pity that mainframers like you can not take a look in to a manual.
Jamir and Dhruv,
Please access this link and get your concepts right. |
|
Back to top |
|
|
star_dhruv2000
New User
Joined: 03 Nov 2006 Posts: 87 Location: Plymouth, MN USA
|
|
|
|
agkshirsagar,
Quote: |
Was it Dhruv2000's solution that worked? I bet it was not what you wanted. In fact that post is completely irrational.
|
Quote: |
Dick's post after Dhruv2000's post was SARCASTIC.. |
Thanks for the update. I am glad to get this information. This is indeed a good link.
But it will be good if you post your answers than commenting someone elses.
Thanks! |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Quote: |
But it will be good if you post your answers than commenting someone elses. |
I have already answered the question, look at my first post in this thread.
And in my last post I have given the link to fine manual. What else do you expect?
If you didn't see my post, then it's not my problem. |
|
Back to top |
|
|
star_dhruv2000
New User
Joined: 03 Nov 2006 Posts: 87 Location: Plymouth, MN USA
|
|
|
|
[/quote]If you didn't see my post, then it's not my problem.
Quote: |
I know you did and thanks for that. It's really great of you to spare some time for novice users like us.
Cheers! |
|
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
agkshirsagar wrote: |
I have already answered the question, look at my first post in this thread.
And in my last post I have given the link to fine manual. What else do you expect? |
Why didn't you just provide the link in the first post?
Use SET instead of MOVE.
And, will you two quit 'snipe'ing at each other..... |
|
Back to top |
|
|
|