UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
UNLOCK Syntax UNLOCK [num.expr] Description The UniBasic UNLOCK command unlocks predefined computer resources reserved by the LOCK command. Resource numbers range from 0 through 63. If you do not specify a resource number, the system releases all locks you have set. If there are no locked resources at the time of execution, the statement does not have any effect. The lock is associated with num.expr, not the resource. Therefore, a command that does not check for locks against the resource number will access the resource even if it is locked. For example, an installation might assign locks 1 through 4 to four system printers. When an application needs to reserve printer 1, the application executes LOCK 1. All other programs must check for locks before accessing the resource for the lock to be effective. Resources are not automatically unlocked by the termination of the locking program. You must use the UniBasic UNLOCK or ECL QUIT commands to release them. You also can release resources by executing the ECL CLEAR.LOCKS command at the UniData level. Example In the following example, the program statement unlocks all computer resources reserved by the current user: UNLOCK 1-892 UniBasic Commands Reference
Related Commands UniBasic LOCK UniData CLEAR.LOCKS, LIST.LOCKS, SUPERCLEAR.LOCKS – For information, see the UniData Commands Reference. UNLOCK 1-893
- Page 910 and 911: SSUB Syntax SSUB(x, y) Description
- Page 912 and 913: STOP Syntax STOP [expr] Description
- Page 914 and 915: STR Syntax STR(str.expr, num.expr)
- Page 916 and 917: STRS Syntax STRS(dyn.array, expr) D
- Page 918 and 919: If the response status indicates th
- Page 920 and 921: SUBROUTINE Syntax SUBROUTINE sub.na
- Page 922 and 923: SUBROUTINE (Update Trigger) Syntax
- Page 924 and 925: Tip: The UniBasic STATUS function r
- Page 926 and 927: SUBROUTINE (Delete Trigger) Syntax
- Page 928 and 929: Tip: The UniBasic STATUS function r
- Page 930 and 931: Related Commands UniBasic DEL, INSE
- 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 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 982 and 983: Parameters The following table desc
- 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\
Related <strong>Commands</strong><br />
<strong>UniBasic</strong><br />
LOCK<br />
UniData<br />
CLEAR.LOCKS, LIST.LOCKS, SUPERCLEAR.LOCKS – For information, see the<br />
UniData <strong>Commands</strong> <strong>Reference</strong>.<br />
UNLOCK 1-893