1 02/06/84 cv_bin_
2
3
4 Entry points in cv_bin_:
5 List is generated by the help command
6
7
8 :Entry: cv_bin_: 02/06/84 cv_bin_
9
10 Function: converts the binary representation of an integer
11 of any base to a 12-character ASCII string.
12
13
14 Syntax:
15 declare cv_bin_ entry fixed bin char12 aligned fixed bin;
16 call cv_bin_ n string base;
17
18
19 Arguments:
20 n
21 is the binary integer to be converted. Input
22 string
23 is the ASCII equivalent of n. Output
24 base
25 is the base to use in converting the binary integer e.g. base is
26 10 for decimal integers. Input
27
28
29 :Entry: dec: 02/06/84 cv_bin_$dec
30
31
32 Function: converts the binary representation of an integer of base 10
33 to a 12-character ASCII string.
34
35
36 Syntax:
37 declare cv_bin_$dec entry fixed bin char12 aligned;
38 call cv_bin_$dec n string;
39
40
41 Arguments:
42 n
43 is the binary integer to be converted. Input
44 string
45 is the ASCII equivalent of n. Output
46
47
48 Notes: This function can be performed more efficiently in PL/I by:
49
50 string = ltrim char n;
51
52
53
54 :Entry: oct: 02/06/84 cv_bin_$oct
55
56
57 Function: converts the binary representation of an octal integer to a
58 12-character ASCII string.
59
60
61 Syntax:
62 declare cv_bin_$oct entry fixed bin char12 aligned;
63 call cv_bin_$oct n string;
64
65
66 Arguments:
67 n
68 is the binary integer to be converted. Input
69 string
70 is the ASCII equivalent of n. Output
71
72
73 Notes: If the character-string representation of the number exceeds 12
74 characters, then only the low-order 12 digits are returned.