how to use arrays



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

how to use arrays

Postby sunilkumar1244 » Tue Jul 21, 2009 6:01 pm

Hi,

I need heip to know the proprer syntax to use and declare indexed and subscript arrays.

Please help me out..

Thanks,
Sunil
sunilkumar1244
 
Posts: 4
Joined: Tue Jul 21, 2009 5:49 pm
Has thanked: 0 time
Been thanked: 0 time

Re: how to use arrays

 

Re: how to use arrays

Postby dick scherrer » Wed Jul 22, 2009 1:50 am

Hello,

The syntax can be the same except an indexed array specifies "INDEXED BY".

Suggest you spend some time in the COBOL Language Reference manual:
http://publibz.boulder.ibm.com/cgi-bin/ ... 0/CONTENTS?

The flashlight/tubelight near the top left provides search capability for the manual.

Suggest you bookmark or download the manual as you should use it often.
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


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post