home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / pep21.arc / PEPVMS.TXT < prev    next >
Text File  |  1989-12-29  |  3KB  |  122 lines

  1. VMS notater
  2. ===========
  3.  
  4.     << This help file exists in Norwegian only. >>
  5.     << Denne  hjelpefilen finnes bare p} norsk. >>
  6.  
  7. Record Management Service
  8. -------------------------
  9.  
  10. VMS Record Management Service (RMS) kjenner til forskjellige format.
  11.  
  12. Record formatet p} en fil FOO.BAR kan man se ved } ta
  13.  
  14.     $ dir/full FOO.BAR
  15.  
  16. Relativt kanoniske VMS verdier er:
  17.     File organisation: sequential
  18.     Record attributes: Carriage return carriage control
  19.     Record format: Variable length, maximum XX bytes
  20.  
  21. Hvor XX er den lengste linjen i filen.
  22.  
  23. Studerer man en slik fil med dump:
  24.  
  25.     $ dump/byte FOO.BAR
  26.  
  27. oppdager man at de f|rste to bytene p} hver linje angir antall tegn
  28. p} linja, og at det ikke er noe eoln-merke mellom linjene.
  29.  
  30. Dette er usynlig for programmer som pep og ftp.  RMS konverterer
  31. filen ved innlesning slik at pep tror den ser en standard UNIX
  32. tekstfil.
  33.  
  34. Pep produserer imidlertid alltid filer med f|lgende record format:
  35.  
  36.     Record format: Stream_LF
  37.  
  38. Dette er filer som lagres av RMS som "UNIX-type" tekstfiler, uten
  39. noen lengdeangivelse, og hver linje terminert av en enkelt LF.
  40.  
  41. For } konvertere mellom formatene finnes en standard VMS utility
  42. med navn CONVERT.
  43.  
  44.  
  45. Hvordan endre filattributt til "variable length"?
  46. -------------------------------------------------
  47.  
  48. P} Inger p} Universitet i Oslo  Knut Omang har laget et enkelt DCL
  49. program for } konverere filer til kanoniske VMS-filer.  Den heter
  50. CONV.COM og ligger p} DISK_USE:<X_OMANG_K.EXE>.
  51.  
  52.    CONV.COM ser slik ut:
  53.  
  54.     $ convert 'p1' 'p1'/fdl=disk_use:[x_omang_k.exe]convert
  55.  
  56.    Med profil CONVERT.FDL:
  57.  
  58.     FILE
  59.             Organization Sequential
  60.  
  61.     RECORD
  62.         Carriage_control Carriage_return
  63.         Format variable
  64.  
  65. F|lgelig kan man alltid lage et kanonisk VMS tekstfil ved } kj|re
  66. et slikt DCL-program.  For eksempel, p} Inger vil kommandoen for
  67. } konverte FOO.BAR v{re:
  68.  
  69.     $ @disk_use:[x_omang_k.exe]conv FOO.BAR
  70.  
  71. CONVERT er grundigere beskrevet i VMS manualene.  Man kan f} litt
  72. informasjon p} et VMS-system ved } si
  73.  
  74.     $ help convert
  75.  
  76. -------------------------------------------------------------------------------
  77.  
  78. Utdrag fra $ HELP CONVERT:
  79.  
  80.  
  81. CONVERT
  82.  
  83.  
  84.     The CONVERT commands perform the following functions:
  85.  
  86.     o  Copy records from one file to another, changing the  organization
  87.        and  format  of  the  input  file to that of the output file (see
  88.        File).
  89.  
  90.     o  Make empty buckets in Prologue 3 indexed files available so  that
  91.        new records can be written in them (see /RECLAIM).
  92.  
  93.     o  Converts a revisable  format  file to another revisable or final
  94.        form file from the DCL command line (see /DOCUMENT).
  95.  
  96.   Additional information available:
  97.  
  98.      File       /RECLAIM   /DOCUMENT
  99.  
  100.  
  101. CONVERT
  102.  
  103.   File
  104.  
  105.       Invokes the VMS Convert Utility (CONVERT) to copy  records from  one
  106.       file to  another,  changing the organization and format of the input
  107.       file to those of the output file.  For a complete description of the
  108.       of the VMS Convert Utility,  including  more  information  about the
  109.       CONVERT  command  and  its  qualifiers,  see  the  VMS  Convert  and
  110.       Convert/Reclaim Utility Manual.
  111.  
  112.       Format:
  113.  
  114.  
  115.         CONVERT  input-file-spec[,...] output-file-spec
  116.  
  117. ..etc.
  118.  
  119. -------------------------------------------------------------------------------
  120. ..EOF
  121.  
  122.