next up previous
Next: Main Programs Currently Available Up: USING THE SYSTEM Previous: Running New or Changed

Use of Scratch COMMON

Two areas of labelled scratch COMMON are used in CCSL routines, and can with certain restrictions be made use of by user programs; they are called /SCRAT/ and /SCRACH/.

COMMON /SCRAT/ has a maximum length within CCSL of 10201 items (integers or real numbers).

COMMON /SCRACH/ is a character buffer to contain at least 80 characters, and usually 200.

It is used extensively by the card reading routines. The CHARACTER *80 item ICARD in COMMMON /SCRACH/ is used as the buffer in which the routine CARDIN places a character string from the Crystal Data, and where all the CCSL free format subroutines expect to find it. It is this character string which is interpreted by the various INPUTx routines, and which could be interpreted by user programs. The subroutine ASK which reads a line of input from the terminal puts it into this common area.

The character string NAMFIL, normally of length 100, is used to store complete file paths. If these are very long the symbolic variable name FNAM may need to be made greater than 100. In general it must not be assumed that either of the scratch common areas will be unchanged by CCSL routines; the inexperienced user should avoid them.


next up previous
Next: Main Programs Currently Available Up: USING THE SYSTEM Previous: Running New or Changed
P.J. Brown - Institut Laue Langevin, Grenoble, FRANCE. e-mail brown@ill.fr