[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Unstringing



Title: Unstringing
Chad,
 
This may be helpful:
 
begin-procedure get-record
 
    let $RecordData = ' '
 
    read 1 into $RecordData:500
   
   unstring $RecordData by '~' into
  $100th
  $200th
  $400th 
  $500th
 
end-procedure
 

José A. Aguirre

-----Original Message-----
From: Slattery, Chad [mailto:Chad.Slattery@CSCLAC.IRLGOV.IE]
Sent: Thursday, August 31, 2000 3:50 AM
To: SQR-USERS@list.iex.net
Subject: Unstringing

Hi all,
Does anyone know if its possible to do the following?  Im opening a file for reading and unstringing a record into fields.  The amount of fields could be quite large but I'll only need a set number of them for my task.  My question is, is it possible to get a field from the record without having to take all the fields out first?

eg,
record 1 has 500 fields, I only need to get the 100th,200th,300th,400th and 500th field, is there a way I can do this without unstringing the 500 fields into variables? 

Im trying to use arrays as I will have to use the arguments dynamically later on in the program.

TIA,

Chad.