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

RE: [sqr-users] Reading from a tab delimited file





Her is the code.  I read int the file and unstring it by the tab into
variableks.  
  encode <09> into $tab

  open 'MasterMatch.TXT' as 1 for-reading record=1500 status=#filestat
! read 1 into   $in_rec:1500 status=#filestat
 
    unstring $in_rec by $tab into
                $EmplId
                $Last_Name
                $Location
                $Empl_Type
                $Email_Addr

-----Original Message-----
From: sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org
[mailto:sqr-users-bounces+patricia.overcashier=aam.com@sqrug.org] On
Behalf Of Ryan, David
Sent: Wednesday, October 04, 2006 2:48 PM
To: sqr-users@sqrug.org
Subject: [sqr-users] Reading from a tab delimited file

Hello,
 
I'm trying to read from a tab delimited .txt file and insert values into
variables.
I do not now know what the length of each field within the file is.
Could someone provide an example that would allow me to 
start at the beginning of a line, read from the beginning to the first
tab, insert into a variable; read from the first tab to second tab,
insert into a variable.....and so on...
 
thanks
 
 


The information contained in this email is strictly confidential and
subject to the Confidentiality Notice at
http://www.stratosglobal.com/email-privacy.html



_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users