home *** CD-ROM | disk | FTP | other *** search
- VMS notater
- ===========
-
- << This help file exists in Norwegian only. >>
- << Denne hjelpefilen finnes bare p} norsk. >>
-
- Record Management Service
- -------------------------
-
- VMS Record Management Service (RMS) kjenner til forskjellige format.
-
- Record formatet p} en fil FOO.BAR kan man se ved } ta
-
- $ dir/full FOO.BAR
-
- Relativt kanoniske VMS verdier er:
- File organisation: sequential
- Record attributes: Carriage return carriage control
- Record format: Variable length, maximum XX bytes
-
- Hvor XX er den lengste linjen i filen.
-
- Studerer man en slik fil med dump:
-
- $ dump/byte FOO.BAR
-
- oppdager man at de f|rste to bytene p} hver linje angir antall tegn
- p} linja, og at det ikke er noe eoln-merke mellom linjene.
-
- Dette er usynlig for programmer som pep og ftp. RMS konverterer
- filen ved innlesning slik at pep tror den ser en standard UNIX
- tekstfil.
-
- Pep produserer imidlertid alltid filer med f|lgende record format:
-
- Record format: Stream_LF
-
- Dette er filer som lagres av RMS som "UNIX-type" tekstfiler, uten
- noen lengdeangivelse, og hver linje terminert av en enkelt LF.
-
- For } konvertere mellom formatene finnes en standard VMS utility
- med navn CONVERT.
-
-
- Hvordan endre filattributt til "variable length"?
- -------------------------------------------------
-
- P} Inger p} Universitet i Oslo Knut Omang har laget et enkelt DCL
- program for } konverere filer til kanoniske VMS-filer. Den heter
- CONV.COM og ligger p} DISK_USE:<X_OMANG_K.EXE>.
-
- CONV.COM ser slik ut:
-
- $ convert 'p1' 'p1'/fdl=disk_use:[x_omang_k.exe]convert
-
- Med profil CONVERT.FDL:
-
- FILE
- Organization Sequential
-
- RECORD
- Carriage_control Carriage_return
- Format variable
-
- F|lgelig kan man alltid lage et kanonisk VMS tekstfil ved } kj|re
- et slikt DCL-program. For eksempel, p} Inger vil kommandoen for
- } konverte FOO.BAR v{re:
-
- $ @disk_use:[x_omang_k.exe]conv FOO.BAR
-
- CONVERT er grundigere beskrevet i VMS manualene. Man kan f} litt
- informasjon p} et VMS-system ved } si
-
- $ help convert
-
- -------------------------------------------------------------------------------
-
- Utdrag fra $ HELP CONVERT:
-
-
- CONVERT
-
-
- The CONVERT commands perform the following functions:
-
- o Copy records from one file to another, changing the organization
- and format of the input file to that of the output file (see
- File).
-
- o Make empty buckets in Prologue 3 indexed files available so that
- new records can be written in them (see /RECLAIM).
-
- o Converts a revisable format file to another revisable or final
- form file from the DCL command line (see /DOCUMENT).
-
- Additional information available:
-
- File /RECLAIM /DOCUMENT
-
-
- CONVERT
-
- File
-
- Invokes the VMS Convert Utility (CONVERT) to copy records from one
- file to another, changing the organization and format of the input
- file to those of the output file. For a complete description of the
- of the VMS Convert Utility, including more information about the
- CONVERT command and its qualifiers, see the VMS Convert and
- Convert/Reclaim Utility Manual.
-
- Format:
-
-
- CONVERT input-file-spec[,...] output-file-spec
-
- ..etc.
-
- -------------------------------------------------------------------------------
- ..EOF
-
-