how to display the value of the index variable in cobol



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: how to display the value of the index variable in cobol

Postby qykong1986 » Wed Mar 25, 2009 7:47 am

sorry,
MOVE index TO WS-NUM1 WS-NUM2 WS-NUM3 WS-NUM4.

This is wrong.
It should be SET ws-num1 ws-num2 ws-num3 ws-num4 TO index .
I am sorry.
--------------------------------------------------------------------------------------------------------------
Thanks ^_^
Hubery.
qykong1986
 
Posts: 10
Joined: Thu Mar 19, 2009 11:28 am
Location: Shanghai.
Has thanked: 0 time
Been thanked: 0 time

Re: Re: how to display the value of the index variable in cobol

 

Re: how to display the value of the index variable in cobol

Postby dick scherrer » Wed Mar 25, 2009 7:55 am

Hello,

Not a problem :)

Typically, it is better to copy/paste rather than re-type. I'm too slow and make too many errors to type ;)
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: how to display the value of the index variable in cobol

Postby Ieet » Wed Mar 25, 2009 2:47 pm

Hi Dick,

... nice. You just got a regular reader more here :)

Regards
Ieet
Ieet
 
Posts: 5
Joined: Tue Mar 24, 2009 6:37 pm
Has thanked: 0 time
Been thanked: 0 time

Re: how to display the value of the index variable in cobol

Postby dick scherrer » Thu Mar 26, 2009 12:05 am

Enjoy :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post