Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ unix2mf(1) — SAS/C 370 5.50.07

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mf2unix(1)

UNIX2MF(1)  —  USER COMMANDS

NAME

unix2mf − C source code translator to the MainFrame

USAGE

unix2mf [ options ]

DESCRIPTION

unix2mf translates C source code from Unix format to mainframe format. Currently unix2mf takes a line of code from standard input and prints it to standard output. If no options are specified, unix2mf then breaks long lines, changes brackets to digraphs, and replaces tabs with the correct multiple of spaces. 

The output file is usually then copied to the mainframe using FTP or some other mechanism. 

OPTIONS

unix2mf recognizes the following options:

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

−tnum defines the tab multiple (default 8)

−offt do not replace tabs with spaces. 

−offdi do not replace brackets with digraphs

EXAMPLE

cat foo.c | unix2mf > bar.c
The input file (foo.c) is copied to standard out (bar.c), with lines truncated to 72 columns, tabs expanded to multiples of 8 and square brackets replaced with SAS/C digraphs.  The file bar.c is now ready to compile using the SAS/C Compiler on MVS or CMS.

FILES

unix2mf      translation utility

RELATED INFORMATION

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

5.50  —  Last change: SAS/C

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