/ZEBRA_RZ

ZEBRA/RZ package: direct access Input/Output.

/ZEBRA/RZ/FILE lun fname [ lrecl chopt ]

LUN I Logical unit number R=1:128
FNAME C File name
LRECL I Record length in WORDS D=1024
CHOPT C Options D=' '

CHOPT:

'' '' Read only mode.
'U' Update mode.

Open an existing direct access file.

/ZEBRA/RZ/MAKE lun fname [ lrecl nrec nwkey chform chtags ]

LUN I Logical unit number R=1:128
FNAME C File name
LRECL I Record length in WORDS D=1024
NREC I Number of records D=1000
NWKEY I Number of words per Key D=1
CHFORM C Key format D='I'
CHTAGS C List of Tags D='HBOOK-ID'

CHFORM:

'I'
'B'
'A'
'H'

Open a new direct access file.

/ZEBRA/RZ/MDIR chdir [ nwkey chform chtags ]

CHDIR C Directory name
NWKEY I Number of words per Key D=1
CHFORM C CHFORM D='I'
CHTAGS C List of Tags D='HBOOK-ID'

Create a new RZ directory below the current directory.

/ZEBRA/RZ/DDIR chdir

CHDIR C Directory name

Delete the directory CHDIR from the current directory.

/ZEBRA/RZ/LDIR [ chpath chopt ]

CHPATH C Path name D=' '
CHOPT C Options D=' '

CHOPT:

'' '' List contents of a directory.
'A' List all the Ntuple extensions.
'T' List a directory Tree.

List contents of a directory (memory or disk). To list all RZ files currently opened, type 'LD //'. Note that if the Current Directory is //PAWC, this command uses the same format as HISTO/LIST.

/ZEBRA/RZ/CDIR [ chpath chopt ]

CHPATH C Path name D=' '
CHOPT C Options D=' '

Change the current working directory (CWD). IF CHPATH is given make it the new CWD. Otherwise, print the pathname of the CWD.

Example:

CD dir1 | make DIR1 the new CWD CD //file1/dir2 | make //FILE1/DIR2 the new CWD CD | print the name of the CWD

/ZEBRA/RZ/PURGE [ keep ]

KEEP I Number of cycles to be kept D=1

Purge an RZ directory.

/ZEBRA/RZ/LOCK [ chlock ]

CHLOCK C Lock identifier D='RZFILE'

Lock an RZ directory.

/ZEBRA/RZ/FREE [ chlock ]

CHLOCK C Lock identifier D='RZFILE'

Free an RZ directory.

/ZEBRA/RZ/STAT chpath

CHPATH C Name of top directory

Print space statistics for an RZ file.