Can a Index Variable assigned value using Move Statement



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

Can a Index Variable assigned value using Move Statement

Postby chasermf » Tue May 20, 2008 3:36 pm

Can a Index Variable assigned value using Move Statement
a)True
b)False



explanation please......................................
thanks in advance!!!!
reply as soon as possible
chasermf
 
Posts: 6
Joined: Wed May 07, 2008 7:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: cobol

Postby jayind » Tue May 20, 2008 3:47 pm

you have to use SET command to assign a value to index. MOVE can be used for other variables but not for INDEXES
jayind
 
Posts: 62
Joined: Wed Apr 23, 2008 1:37 pm
Location: Chennai, India
Has thanked: 0 time
Been thanked: 0 time


Re: Can a Index Variable assigned value using Move Statement

Postby abhinavnimje » Tue Jun 03, 2008 11:24 am

whatever u specified is for MOVE CORR,
where actual movement fo INDEX values is not taking place.
you can use MOVE for the SUBSCRIPT but not for INDEX.
abhinavnimje
 
Posts: 1
Joined: Tue Jun 03, 2008 8:53 am
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post