home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!olivea!charnel!sifon!clouso.crim.ca!cerberus.ulaval.ca!SAPHIR.ULAVAL.CA!2020211
- From: 2020211@SAPHIR.ULAVAL.CA (Sylvain Chamberland)
- Newsgroups: comp.os.vms
- Subject: Convert MSDOS or UNIX text format to VMS format
- Message-ID: <1992Dec30.085139.3959@cerberus.ulaval.ca>
- Date: 30 Dec 92 08:51:39 GMT
- Sender: news@cerberus.ulaval.ca
- Reply-To: 2020211@SAPHIR.ULAVAL.CA
- Organization: CTI, Universite Laval
- Lines: 53
- Nntp-Posting-Host: saphir
-
- Hi netters...
-
- First let me tell you I'm not a programmer, I'm not even studying computers.
- I'm just a biology grad student who has to cope with a VAX account and is
- sourly mourning his former unix account... ;-) (no kidding I DO prefer unix
- to VMS!)
- I have seen the recent wave of the "flames" thread, so I will try to be clear
- and precise... ;-) (anyway I got a thick skin!)
-
- Here's my problem: I don't have any archive utility on my system here so I went
- to get a C source for "zip" by anonymous ftp. The source was written so it could
- be portable, and I got the VMS supplementary files.
-
- But it appears the source is not in a VMS format, because the VAX EDIT editor
- will not accept any of the *.c or *.h files as files containing many lines. It
- appears to me a whole file is considered as being composed of one or a few
- lines by the editor or the compiler. The VAX C compiler ("CC") won't compile
- the source, it does not seem to recognize the format.
-
- (Please note that I used the VAX C compiler successfully to compile a source
- for a ymodem file transfer protocol...)
-
- I checked the contents of the files with the VMS DUMP command, and the end of a
- line is marked by the character 0A hex (line-feed I guess). I checked a file
- created by EDIT and a line is terminated by 00... so I deduced the problem is
- the character for the end of line.
-
- So I would be very grateful if somebody told me how I could transform these
- files in a format readable by the VAX C compiler... :)
-
- I tried to see what I could do with commands like CoNVERT, but nothing so far
- has worked. I don't know much about VAX, and I don't have any idea of what
- the heck is a "FDL"...
-
- I tried to transfer some files back and forth my IBM PC clone using the ymodem
- protocol I just told about, then compared two versions of the same file with
- the command ANALYZE/RMS_FILE: the original file, and one which went to my
- computer and back. The "record type" had changed from "fixed" to "stream-LF",
- the analysis told about something like "VBN 8" that had changed to "9"... also,
- there appeared to be no limits to the size of the blocks anymore. But the
- transfered file could be taken by EDIT (and read by the VAX C compiler, "CC"),
- despite the fact that it said that the text format was not standard. I checked
- with DUMP, and the end of a line was identical in both!
- (On screen, with TYPE, there are line feeds without carriage returns for the
- original file, while there are carriage returns on screen for the transfered
- file).
-
- Anyway, I'm at a complete loss, and I'm WAY out of my league, and would really
- appreciate if somebody could tell me what's going on... :)
-
-
- Sylvain Chamberland
- 2020211@saphir.ulaval.ca
-