| Author |
About index variable in cobol
|
|
| dhushetty@gmail.com 2007-09-13, 7:55 am |
| Hi i have the following question about index variable in cobol?
How to display the value of an index variable?
a. By using another S9(4) COMP variable
b. Simply displaying the index variable itself
c. Value of an index can never be displayed.
d. By using another S9(4) COMP-3 variable
e. By using another S9(4) variable
| |
| William M. Klein 2007-09-13, 7:55 am |
| Before someone tells you to do your own homework, which of those answers seems
right to you - and why?
--
Bill Klein
wmklein <at> ix.netcom.com
<dhushetty@gmail.com> wrote in message
news:1189678067.888298.32070@y42g2000hsy.googlegroups.com...
> Hi i have the following question about index variable in cobol?
>
> How to display the value of an index variable?
>
> a. By using another S9(4) COMP variable
> b. Simply displaying the index variable itself
> c. Value of an index can never be displayed.
> d. By using another S9(4) COMP-3 variable
> e. By using another S9(4) variable
>
| |
| Doug Miller 2007-09-13, 7:55 am |
| In article <1189678067.888298.32070@y42g2000hsy.googlegroups.com>, dhushetty@gmail.com wrote:
>Hi i have the following question about index variable in cobol?
>
>How to display the value of an index variable?
>
>a. By using another S9(4) COMP variable
>b. Simply displaying the index variable itself
>c. Value of an index can never be displayed.
>d. By using another S9(4) COMP-3 variable
>e. By using another S9(4) variable
If we do your homework for you, how do you expect to ever learn anything?
--
Regards,
Doug Miller (alphag at milmac dot com)
It's time to throw all their damned tea in the harbor again.
| |
| HeyBub 2007-09-13, 7:55 am |
| dhushetty@gmail.com wrote:
> Hi i have the following question about index variable in cobol?
>
> How to display the value of an index variable?
>
> a. By using another S9(4) COMP variable
> b. Simply displaying the index variable itself
> c. Value of an index can never be displayed.
> d. By using another S9(4) COMP-3 variable
> e. By using another S9(4) variable
f. None of the above
| |
|
| In article <1189678067.888298.32070@y42g2000hsy.googlegroups.com>,
<dhushetty@gmail.com> wrote:
>Hi i have the following question about index variable in cobol?
>
>How to display the value of an index variable?
Please do your own homework
DD
| |
| Arnold Trembley 2007-09-14, 3:55 am |
| dhushetty@gmail.com wrote:
> Hi i have the following question about index variable in cobol?
>
> How to display the value of an index variable?
>
> a. By using another S9(4) COMP variable
> b. Simply displaying the index variable itself
> c. Value of an index can never be displayed.
> d. By using another S9(4) COMP-3 variable
> e. By using another S9(4) variable
>
Well, on IBM COBOL for z/OS (forgot the exact level), options a, c, d,
and e are TRUE, and option b is false. You have to SET an
elementary numeric item TO the Index.
z/OS COBOL automatically converts numeric elementary items to display
usage for a DISPLAY statement. IBM OS/VS COBOL (obsolete for many
years) did not have this capability, but I still sometimes miss the
IBM extension of EXHIBIT NAMED <elementary item>.
Cheers,
--
http://arnold.trembley.home.att.net/
|
|
|
|