Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mf2unix(1) — SAS/C 370 5.50.07

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

unix2mf(1)

MF2UNIX(1)  —  USER COMMANDS

NAME

mf2unix − C source code translator to the mainframe

USAGE

mf2unix [ options ]

DESCRIPTION

mf2unix mf2unix translates C source code from Main Frame format to Unix format. Currently unix2mf takes a line of code from standard input and prints it to standard output. If no options are specified, mf2unix then strips off trailing blanks, changes digraphs to brackets, and strips sequence numbers. 

The input file resides on the UNIX host, usually transferred from the mainframe using FTP or some other mechanism. 

OPTIONS

mf2unix recognizes the following options:

−lnum defines line length, where num is the maximum length of the line (default is 72)

−lbl leave trailing blanks

−offdi do not replace digraphs with brackets

−recfmtype describe the record format; type may be ’v’ for variable or ’f’ for fixed. 

−noseq do not check for sequence numbers

EXAMPLE

cat foo.c | mf2unix > bar.c
The input file (foo.c) is copied to standard out (bar.c), SAS/C digraphs are replaced with square brackets, and trailing blanks are removed from each line.  The source file is now ready to compile with a UNIX or other host compiler.

FILES

mf2unix      translation utility

RELATED INFORMATION

unix2mf(1), SAS/C Compiler and Library User’s Guide. 

5.50  —  Last change: SAS/C

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026