loading an array from a file

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

loading an array from a file

Postby sravani » Mon Dec 28, 2009 10:45 am

hi all,
can somebody help me on this.......can we declare an array in a file structure? if yes how can we load the array from that file
Posts: 2
Joined: Sat Dec 26, 2009 1:04 pm
Has thanked: 0 time
Been thanked: 0 time

Re: loading an array from a file

Postby Robert Sample » Mon Dec 28, 2009 6:02 pm

Your question is not clear. When you say "file structure" do you mean the 01 associated with the FD? If so, each record you read contains data in the array. If not, please explain in more detail what you are attempting to accomplish.
Robert Sample
Global moderator
Posts: 3686
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 274 times

Re: loading an array from a file

Postby dick scherrer » Tue Dec 29, 2009 4:53 am

Hello and welcome to the forum,

If you show "what you have" and you show "what you want to do" someone may have a suggestion.

As Robert mentioned, your "question" isnot clear.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Return to IBM Cobol


  • Related topics
    Last post