sffmap

sffmap

Change the character set of an incoming file or stream. This uses a file in
tables/sff.
    Syntax is :

    cat yuko | sffmap > yukP     uses tables/sff/MAP
    cat yuko | sffmap newmap.460 > yukP  uses tables/sff/NEWMAP.460
    sffmap map yuko > yukP           uses tables/sff/MAP
    sffmap newmap2 yuko > yukP       uses tables/sff/NEWMAP2
    sffmap - yuko yukP          uses tables/sff/MAP
or
    sffmap -v               print version number and exit
For those switches with parameters, the parameter MUST be separated by a space.

The MAP file has the syntax :
    ; comment line
    (Incoming chr) (spaces/tabs) (Outgoing chr) (eoln)
or  (Incoming chr) (spaces/tabs) (Outgoing string)  (eoln)

where the two chrs can be printable chrs or escaped octal.
Eg
    \245    a
    a   A
    b   B
    \377    \376
    \003    \256qr\257

If the file has a FipStyle header between '~ NL', any '~' and NL chrs are
preserved but any other are translated.

Enviornment variables can be used to define where the system is :
    SFF_HOME    where the home or top queue is.     default: /fip
            eg  setenv  SFF_HOME    /ripexpress/underware
    SFF_TABLES  where the parameter files are       default: (SFF_HOME)/tables
    SFF_LOG     where the log files queue is        default: (SFF_HOME)/log
    SFF_SPOOL   where the data queues are       default: (SFF_HOME)/spool
    SFF_TMP     where the tmp data queues is        default: (SFF_HOME)/x
            THIS MUST BE ON THE SAME UNIX VOLUME as SFF_SPOOL queues.
            ie if spools are on /data99 which is hard disk /dev/sd0, you MUST also
            have the TMP queue on the same disk/partition

NOTE that for all BUT SFF_HOME, if the parameter starts with a '/' then it is a
hard, absolute path; if not then the spool area is under SFF_HOME.
    eg  setenv  SFF_SPOOL   /data7      will look under /data7 for queues
    while   setenv  SFF_SPOOL   data7       will look under /fip/data7

(copyright) 2024 and previous years FingerPost Ltd.