User guide
120 CHAPTER 4. THE COMMAND LANGUAGE
prmcode CIN:y, POS:y, NAT:y
This command converts an MCODE (intermediate code for MCPL) file specified by
FROM to a more readable form. If FROM is m i ssi ng it reads from the file MCODE. If the TO
argument is missing it send the result to the screen. The file MCODE is a by pr oduct
of the mcpl command, see mcpl above.
procode FROM,TO/K CIN:y, POS:y, NAT:y
This command converts an OCODE (intermediate code for B CPL ) file specified by
FROM to a more readable form. If FROM is m i ssi ng it reads from the file OCODE. If the TO
argument is missing it send the result to the screen.
prompt PROMPT,P0/S,P1/S,P3/S,P4/S,NO/S CIN:y, POS:y, NAT:y
If the NO switch is given prompts are disabled, otherwise they will be enabled.
Under Cintpos, disabling pr ompt s is useful, for instance, if a CLI task i s taking input
from a TCP/IP connection where t he source of the commands is another program. The
PROMPT ar gume nt is optional, but if present will be the new prompt format string. The
switch parameters P0 to P4 select commonly used prompt formats. The CLI generates
prompts using a call of the following form.
writef(prompt, cpumsecs, taskno, hours, mins, secs, msecs)
where prompt is the prompt format string, cpumsecs is the time in milliseconds used
by the previous command, taskno is the current task number under Cintpos and zero
otherwise. The arguments hours, mins, secs and msecs represent the current ti me of
day. The default prompt format under Cintpos is: "%+%n> " and under the other
systems is: "%5.3d> ". An example of how it might be used is as follows.
0>
0> prompt "%+%+%z2:%z2:%z2 %-%-%-%-%-%5.3d> "
15:11:52 0.000>
15:11:55 0.000> bench100
bench mark starting, Count=1000000
starting
finished
qpkt count = 2326410 holdcount = 930563
these results are correct
end of run
15:12:14 10.690>
This shows that bench100 finished execution 14 seconds after 3:12pm after running for
10.690 seconds.
quit RC/N,REASON/N CIN:y, POS:y, NAT:y
This causes a CLI c omman d-c ommand to terminate returning a completion code of
zero unless overridden by the RC argument. If REASON is given it is placed in result2.