1 | .\" |
---|
2 | .\" $Source: /source/4.3/man/man1/RCS/ansi.1,v $ |
---|
3 | .\" $Author: wjmadden $ |
---|
4 | .\" $Locker: $ |
---|
5 | .\" $Log: ansi.1,v $ |
---|
6 | .\"Revision 1.1 84/08/15 23:21:39 wjmadden |
---|
7 | .\"Initial revision |
---|
8 | .\" |
---|
9 | .\"Revision 1.1 84/05/10 18:46:20 root |
---|
10 | .\"Initial revision |
---|
11 | .\" |
---|
12 | .\" |
---|
13 | .TH ANSI 1I 5/21/83 |
---|
14 | .UC 4 |
---|
15 | .SH NAME |
---|
16 | ansi, unseg \- read and convert VMS ansi labeled tapes. |
---|
17 | .SH SYNOPSIS |
---|
18 | .B ansi |
---|
19 | [ \fB-bfisv\fP ] [ \fRdrive\fP ] [ files ] ... |
---|
20 | .LP |
---|
21 | .B unseg |
---|
22 | < file > newfile |
---|
23 | .SH DESCRIPTION |
---|
24 | \fIAnsi\fP is used to read and convert files from ansi labeled tapes. |
---|
25 | In particular, it handles gracefully the following situations: |
---|
26 | (1) non-standard block sizes, |
---|
27 | (2) variable length records, both text and binary data |
---|
28 | (binary data is converted to f77 style variable records), |
---|
29 | (3) extraction of particular files from the tape, |
---|
30 | (4) version numbers of files, |
---|
31 | (5) fortran carriage control text files, |
---|
32 | (6) fixed length record binary files. |
---|
33 | In particular, it is useful for reading labeled tapes produced by |
---|
34 | Vax/VMS. |
---|
35 | All \fIfiles\fP |
---|
36 | listed in the argument are extracted into the current directory. |
---|
37 | If no files are specified, all files on the tape are extracted. |
---|
38 | .PP |
---|
39 | The companion program \fIunseg\fP |
---|
40 | is useful for converting VMS fortran variable length segmented files |
---|
41 | (the default file type produced by VMS fortran) to a form readable directly |
---|
42 | by the Unix fortran compiler. |
---|
43 | .TP |
---|
44 | .B \-v |
---|
45 | Verbose mode. |
---|
46 | \fIAnsi\fP |
---|
47 | will give a running commentary of the files created and the types |
---|
48 | determined from the HDR1 and HDR2 labels. |
---|
49 | .TP |
---|
50 | .B \-s |
---|
51 | Superverbose mode. |
---|
52 | Dumps all useful contents of the HDR1 and HDR2 records on the standard output. |
---|
53 | This is useful for debugging purposes. |
---|
54 | .TP |
---|
55 | .B \-b |
---|
56 | Force binary input of all data in the file. |
---|
57 | No record interpretation is performed. |
---|
58 | .TP |
---|
59 | .B \-f |
---|
60 | Read the tape on device \fIdrive\fP rather than \fI/dev/rmt8\fP. |
---|
61 | .TP |
---|
62 | .B \-i |
---|
63 | Ignore version numbers. No version numbers will be appended to the file |
---|
64 | names. |
---|
65 | .TP |
---|
66 | .B \-l |
---|
67 | List all file names and types on the tape. This prevents any files from being |
---|
68 | extracted. |
---|
69 | .LP |
---|
70 | \fIUnseg\fP gives up the ghost if presented with a file in a format it can't |
---|
71 | understand. |
---|
72 | .SH WARNING |
---|
73 | \fIAnsi\fP will destroy any file in the current directory of the same name |
---|
74 | of a file extracted from tape. |
---|
75 | .SH DIAGNOSTICS |
---|
76 | .TP |
---|
77 | Can't open \fIfile\fP |
---|
78 | \fIAnsi\fP could not open the tape drive for reading. |
---|
79 | .TP |
---|
80 | Error in reading volume label. |
---|
81 | The label on the tape was bad. |
---|
82 | .TP |
---|
83 | Volume label found was XXXXXX. |
---|
84 | The volume label on the tape was XXXXXX. |
---|
85 | .TP |
---|
86 | Creating file \fIfile\fP, file type is .... |
---|
87 | verbose information commentary. |
---|
88 | .TP |
---|
89 | Can't Create \fIfile\fP, skipping file on tape. |
---|
90 | \fIAnsi\fP could not create the file in the current directory, |
---|
91 | probably because there was already a file of that name that was not writeable. |
---|
92 | .TP |
---|
93 | Bad HDR2 record! |
---|
94 | Tape is probably not an ansi tape. |
---|
95 | .TP |
---|
96 | ansi: bad forms, binary assumed in \fIfile\fP. |
---|
97 | The forms control character was not A, M or space. |
---|
98 | All \fIansi\fP can do is read in the data as binary, |
---|
99 | as it has no way to find out how to format the data. |
---|
100 | .TP |
---|
101 | ansi: unknown type, binary assumed in \fIfile\fP. |
---|
102 | Fixed format files should always have internal forms control; |
---|
103 | something else was detected. |
---|
104 | .TP |
---|
105 | ansi: unknown format, binary assumed in \fIfile\fP. |
---|
106 | The format of the tape was neither fixed or variable, |
---|
107 | the only forms that \fIansi\fP understands. |
---|
108 | .TP |
---|
109 | Record wrong size (count = XXXXX) |
---|
110 | The block size on tape does not match the block size recorded in the |
---|
111 | file header. |
---|
112 | .SH "SEE ALSO" |
---|
113 | Digital Equipment Corporation, |
---|
114 | \fIVax/VMS Magnetic Tape User's Guide\fP and \fIVax/VMS Fortran User's Guide\fP |
---|
115 | .SH AUTHOR |
---|
116 | Jim Gettys |
---|
117 | .SH BUGS |
---|
118 | Should do more sanity checking on tape files. |
---|
119 | .LP |
---|
120 | There is no way to automatically unsegment fortran files as they come in; |
---|
121 | VMS fortran does its own segmentation on input and output and does not tell |
---|
122 | RMS. |
---|
123 | .LP |
---|
124 | Should be tested with against other Ansi tapes written on other than VMS. |
---|
125 | .LP |
---|
126 | VMS is obsolete and should be abolished. |
---|
127 | .LP |
---|
128 | Fortran carriage control conversion is not perfect. Then again, |
---|
129 | neither is fortran. |
---|