added LSL2 stored procedures
This commit is contained in:
32
LSL2/STPROC/CUST_INQ_CONV.txt
Normal file
32
LSL2/STPROC/CUST_INQ_CONV.txt
Normal file
@ -0,0 +1,32 @@
|
||||
SUBROUTINE CUST_INQ_CONV(ConvType, DataIo, SubrLabel, ReturnedValue)
|
||||
*
|
||||
begin condition
|
||||
pre:
|
||||
post:
|
||||
end condition
|
||||
$insert logical
|
||||
|
||||
equ valid$ to 0 ;* successful
|
||||
equ invalid_msg$ to 1 ;* bad data - print error message window
|
||||
equ invalid_conv$ to 2 ;* bad conversion - " "
|
||||
equ invalid_nomsg$ to 3 ;* bad but do not print the error message window
|
||||
|
||||
status() = Valid$
|
||||
begin case
|
||||
case ConvType = 'ICONV'
|
||||
ReturnedValue = DataIo
|
||||
case ConvType = 'OCONV'
|
||||
begin case
|
||||
case DataIo = 'O'
|
||||
ReturnedValue = 'Open'
|
||||
case DataIo = 'R'
|
||||
ReturnedValue = 'Released to Quote'
|
||||
case DataIo = 'D'
|
||||
ReturnedValue = 'Declined'
|
||||
case Otherwise$
|
||||
ReturnedValue = ''
|
||||
end case
|
||||
case otherwise$
|
||||
status() = invalid_msg$
|
||||
end case
|
||||
return
|
Reference in New Issue
Block a user