UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
Parameters The following table describes each parameter of the syntax. Parameter Description Multireel Tape Processing You must use the TAPELEN option for the T.ATT command and specify the tape length. This command is intended for use with UniData tapes only. For information about the ECL T.ATT command, see the UniData Commands Reference. 1-915 UniBasic Commands Reference UNIT(mu.expr) Specifies the conversion code (first digit) and the unit number (second digit). Unit numbers range from 0 through 9. The mu.expr is optional and the default value for UNIT is (00) for tape unit 0 with no conversion performed (ASCII assumed). Valid options include the following: 0 – No conversion (ASCII assumed). 1 – EBCDIC conversion. 2 – Invert high bit. 3 – Swap bytes. expr Specifies an expression to write. THEN statements END THEN executes if command execution is successful. END is required to terminate multiline THEN statements. ELSE statements END ELSE executes if command execution is not successful or the record (or ID) does not exist. END is required to terminate multiline ELSE statements. WRITET Parameters
STATUS Function Return Values After you execute WRITET, the STATUS function returns one of the values described in the following table. Example In the following example, the T.ATT command is executed, and then UniData writes the variable TAX.RECORD to tape: PERFORM "T.ATT" WRITET UNIT (00) TAX.RECORD ELSE PRINT 'TAPE PROBLEM' Related Commands UniBasic READT, RESIZET, REWIND, WEOF UniData Value Description 0 Successful read. 1 End of file encountered. 2 End of tape encountered. 3 Tape not assigned. 4 Parity error. 5 Unknown hardware error. 6 Other unspecified error. STATUS Function Return Values SETTAPE, T.ATT, T.DET – For information, see the UniData Commands Reference. WRITET 1-916
- Page 932 and 933: Examples In the following example,
- Page 934 and 935: In the next example, SWAP does not
- Page 936 and 937: Parameter Description 1-894 UniBasi
- Page 938 and 939: Parameter Description 1-896 UniBasi
- Page 940 and 941: TAN Syntax TAN(num.expr) Descriptio
- Page 942 and 943: TIMEDATE Syntax TIMEDATE( ) Descrip
- Page 944 and 945: Example In the following example, t
- Page 946 and 947: Parameters The following table desc
- Page 948 and 949: TRANSACTION START Syntax TRANSACTIO
- Page 950 and 951: TRIM Syntax TRIM(str.expr[,char[,ty
- Page 952 and 953: Related Commands UniBasic TRIMB, TR
- Page 954 and 955: TRIMF Syntax TRIMF(str.expr) Descri
- Page 956 and 957: Example In the following example, t
- Page 958 and 959: Parameters The following table desc
- Page 960 and 961: UNLOCK Syntax UNLOCK [num.expr] Des
- Page 962 and 963: UPCASE Syntax UPCASE(string.expr) D
- Page 964 and 965: Related Commands UniBasic PAUSE Uni
- Page 966 and 967: STATUS Function Return Values After
- Page 968 and 969: Related Commands UniBasic CLOSESEQ,
- Page 970 and 971: 1-903 UniBasic Commands Reference
- Page 972 and 973: Related Commands UniBasic CLOSE, DE
- Page 974 and 975: UniData SQL SELECT - For informatio
- Page 976 and 977: Parameter Description Example In th
- Page 978 and 979: Parameter Description Example In th
- Page 980 and 981: The following table describes the r
- Page 984 and 985: WRITEU Syntax WRITEU expr {ON | TO}
- Page 986 and 987: Return Value Description Example In
- Page 988 and 989: Parameters The following table desc
- Page 990 and 991: The following example is taken from
- Page 992 and 993: Parameters The following table desc
- Page 994 and 995: C:\Program Files\Adobe\FrameMaker8\
- Page 996 and 997: C:\Program Files\Adobe\FrameMaker8\
- Page 998 and 999: C:\Program Files\Adobe\FrameMaker8\
- Page 1000 and 1001: C:\Program Files\Adobe\FrameMaker8\
- Page 1002 and 1003: C:\Program Files\Adobe\FrameMaker8\
- Page 1004 and 1005: C:\Program Files\Adobe\FrameMaker8\
- Page 1006 and 1007: C:\Program Files\Adobe\FrameMaker8\
- Page 1008 and 1009: C:\Program Files\Adobe\FrameMaker8\
- Page 1010 and 1011: C:\Program Files\Adobe\FrameMaker8\
- Page 1012 and 1013: C:\Program Files\Adobe\FrameMaker8\
- Page 1014 and 1015: C:\Program Files\Adobe\FrameMaker8\
- Page 1016 and 1017: C:\Program Files\Adobe\FrameMaker8\
- Page 1018 and 1019: C:\Program Files\Adobe\FrameMaker8\
- Page 1020 and 1021: C:\Program Files\Adobe\FrameMaker8\
- Page 1022 and 1023: C:\Program Files\Adobe\FrameMaker8\
- Page 1024 and 1025: C:\Program Files\Adobe\FrameMaker8\
- Page 1026 and 1027: C:\Program Files\Adobe\FrameMaker8\
- Page 1028 and 1029: C:\Program Files\Adobe\FrameMaker8\
- Page 1030 and 1031: C:\Program Files\Adobe\FrameMaker8\
Parameters<br />
The following table describes each parameter of the syntax.<br />
Parameter Description<br />
Multireel Tape Processing<br />
You must use the TAPELEN option for the T.ATT command and specify the tape<br />
length. This command is intended for use with UniData tapes only. For information<br />
about the ECL T.ATT command, see the UniData <strong>Commands</strong> <strong>Reference</strong>.<br />
1-915 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />
UNIT(mu.expr) Specifies the conversion code (first digit) and the unit number<br />
(second digit). Unit numbers range from 0 through 9.<br />
The mu.expr is optional and the default value for UNIT is (00)<br />
for tape unit 0 with no conversion performed (ASCII assumed).<br />
Valid options include the following:<br />
0 – No conversion (ASCII assumed).<br />
1 – EBCDIC conversion.<br />
2 – Invert high bit.<br />
3 – Swap bytes.<br />
expr Specifies an expression to write.<br />
THEN statements END THEN executes if command execution is successful. END is<br />
required to terminate multiline THEN statements.<br />
ELSE statements END ELSE executes if command execution is not successful or the<br />
record (or ID) does not exist. END is required to terminate<br />
multiline ELSE statements.<br />
WRITET Parameters