Appendix A. Older Data Conversion Routines

The UNICOS library contains newer conversion routines for the following foreign types:

Type

Routines

IBM

IBM2CRAY(3f), CRAY2IBM

CDC

CDC2CRAY(3f), CRAY2CDC

VAX/VMS

VAX2CRAY(3f), CRAY2VAX

NOS/VE

NVE2CRAY(3f), CRAY2NVE

ETA/CYBER 205

ETA2CRAY(3f), CRAY2ETA

IEEE

IEG2CRAY(3f), CRAY2IEG

The charts in this appendix list the older foreign data conversion routines that Cray Research supports for compatibility. The following abbreviations are used: int. (integer), f.p. (floating-point number), s.p. (single-precision number), and d.p. (double-precision number). Brackets in the synopsis indicate an optional parameter; it may be omitted. See the Application Programmer's Library Reference Manual, for a complete description of each routine.

Old IBM Data Conversion Routines

The following lists IBM data conversion for integer, single-precision, double-precision, logical, and character data:

Convert IBM to/from CRI

Synopsis

INTEGER*1

CALL USICTC (src, isb, dest, num, len [, inc ])

INTEGER*4 / 64-bit int.

CALL USICTI (src, dest, isb, num, len [, inc ])

Pack decimal / 64-bit int.

CALL USICTP (ian, dest, isb, num)

CALL USPCTC (src, isb, num, ian)

32-bit f.p. / 64-bit s.p.

CALL USSCTC (dpn, isb, dest, num [, inc ])

CALL USSCTI (fpn, dest, isb, num, ier [, inc ])

64-bit d.p. / 64-bit s.p.

CALL USDCTC (dpn, isb, dest, num [, inc ])

CALL USDCTI (fpn, dest, isb, num, ier [, inc ])

LOGICAL*1

CALL USLCTC (src, isb, dest, num, len [, inc ])

LOGICAL*4 / 64-bit log.

CALL USLCTI (src, dest, isb, num, len [, inc ])

EBCDIC /ASCII

CALL USCCTC (src, isb, dest, num, npw [, val ])

CALL USCCTI (src, dest, isb, num, npw [, val ])

For UNICOS and UNICOS/mk IEEE systems, CRI2IBM(3f) and IBM2CRI(3f) provide all of the functionality of the preceding routines.

Old CDC Data Conversion Routines

The following lists CDC data conversion routines for single-precision numbers and character data:

Convert CDC to/from CRI

Synopsis

60-bit s.p. /64-bit s.p.

CALL FP6064 (fpn, dest, num)

CALL FP6460 (fpn, dest, num)

Display Code / ASCII

CALL DSASC (src, sc, dest, num)

CALL ASCDC (src, sc, dest, num)


Old VAX/VMS Data Conversion Routine

The following lists VAX/VMS data conversion routines for integer, single-precision, double-precision, complex, and logical data:

Convert VAX/VMS to/from CRI

Synopsis

INTEGER*2

CALL VXICTC (in, isb, dest, num, len [, inc ])

INTEGER*4 / 64-bit int.

CALL VXICTI (in, dest, isb, num, len [, inc ])

32-bit F format / 64-bit s.p.

CALL VXSCTC (fpn, isb, dest, num [, inc ])

CALL VXSCTI (fpn, dest, isb, num, ier [, inc ])

64-bit D format / 64-bit s.p.

CALL VXDCTI (fpn, dest, isb, num, ier [, inc ])

CALL VXDCTC (dpn, isb, dest, num [ ,inc ])

64-bit G format / 64-bit s.p.

CALL VXGCTC(dpn, isb, dest, num [, inc ])

CALL VXGCTI (fpn, dest, isb, num, ier [, inc ])

64-bit complex /complex

CALL VXZCTC (dpn, isb, dest, num [, inc ])

CALL VXZCTI (fpn, dest, isb, num, ier [, inc ])

Logical / 64-bit logical

CALL VXLCTC (src, isb, dest, num, len [, inc ])