high-ascii field delimiter when importing XML? - FIXED

Mike Schwartz mschw at athenet.net
Wed Jun 22 15:16:01 PDT 2011


> On 6/22/2011 2:55 PM, Mike Schwartz wrote:
> [...]
> >       I tried to use a high-Ascii character (192), but this doesn't
> > appear to
> > work:
> 
> DDW.
> 
> And what's with the "doesn't _appear_ to work" that people seem to like?

     OK, this was another "doesn't appear to work" problem that was really
some other problem.

     My code was hitting this import statement several times:

import ascii infil=(fname) r=\n f=192

     I was using fname to read through several xml data files;
fname="/tmp/123.xml", fname="/tmp/456.xml", etc.
  
     I had presumed that changing the file name on each iteration would
reset the import statement's internal positioning to line 1 of the new file
I was opening, but that wasn't happening.  When I tried to open the 2nd
file, the "not infil" was true when it hit the first line after the import.

    The fix was to do a "close infil" after I read each file.

Thanks!

Mike Schwartz
 

 

      

      




More information about the Filepro-list mailing list