[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Loading and writing arrays to a file
- Subject: Loading and writing arrays to a file
- From: Phil Roell <phil.roell@NATINST.COM>
- Date: Wed, 7 Oct 1998 08:24:39 -0500
I am new to SQR and am having difficulty loading an array and then writing it to a
delimited file.
First Question:
When executing a while loop, what lines get executed once the condition has been set
to false. I understand that if the while contains a BREAK that the commands
immediately following the end-while are executed. However, if the while does not
contain a BREAK but the condition becomes false and the loop terminates do the
commands immediately following the end-while get executed before the next record is
selected from the database?
Second Question:
Following is the code I used to create the array:
create-array name=bookings_array size =500
field=product:char
field=bookings_class:char
field=quantity:number:156=0
Becasue of the occurs 156 times on the quantity field what do I need to do to get the
entire record to a delimited file that can be opened in excel.
Any help would be appreciated.
Phil Roell