Solved

EXCEL flat files

Posted on 2000-04-25
5
402 Views
Last Modified: 2008-03-03
I'm attempting to create a flat file (delimiter could be anything) to be read by a perl script to be "variabled", then read by JavaScript. That process is working fine, however, it will work only if I "manually" create the file (using an html editor called FlexEd-with a saving format of UNIX-style turned on)

If I attempt to create the file in EXCEL (comma- ,tab-, or colon-delimited), I get a JS message that it's an unterminated literal. It looks like it's trying to read the entire file as one variable.

I think I may have a EOF problem.

Any ideas?
0
Comment
Question by:tmccar10
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 4

Expert Comment

by:Noggy
ID: 2748388
You will find that the Unix EOL (End Of Line) character is different to that in Windows. One just has a CR (Carriage Return) character and the other has a CRLF (Carriage Return Line Feed) character. Or something like that.

What you need to do is to run your flat file through the unix DOS2Shell.EXE utility app (on Unix)  to make it Unix-friendly.

Coming the other way, there is the app (on Unix again) called Sheel2DOS.EXE.

I hope this helps.

Or have I got it completely wrong what you're trying/having to do?
0
 
LVL 9

Accepted Solution

by:
david_levine earned 100 total points
ID: 2748567
Shouldn't ftp'ing the file over as ASCII (and not binary) do the appropriate conversion between unix and "dos"?
0
 

Author Comment

by:tmccar10
ID: 2748573
Thanks.
You've got it right. And the explaination is along the lines I was thinking...such confidence that that provides.
I'll check it out and let you know
0
 

Author Comment

by:tmccar10
ID: 2751840
I found that the FTPing (in ASCII) does work just fine. Not wanting to over do it, I do have a problem that my I do a significant amount of FTPing (all done in binary) and I use several people to do it. I'm concerned that requiring that one file is sent ASCII may cause confusion.
A long way to say, can I incorporate a process/function (the opposite of bimmode?)into my script that will convert that file to ASCII.
Sorry to be so dense.

Thanks again  
0
 

Author Comment

by:tmccar10
ID: 2758901
Really the simplest answer.
I was able to create a seperate FTP session that amounts to two clicks.

Everything looks good. I was pleased that I atleast figured out that it was an EOF problem...even if I needed help with the solution.

Thanks

0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question