version	U12.1.00
uid	db.u1-1786291413-0
impl	local
global	8
	0,000005,dbopen,4
	1,000005,dbfetch,1
	2,000005,dbclose,1
	3,000005,dbsql,2
	4,000005,dbdelete,2
	5,000005,dbinsert,2
	6,000005,dbselect,4
	7,000005,dbupdate,2

proc dbopen
	local	0,001000,dsn
	local	1,001000,tabl
	local	2,001000,user
	local	3,001000,password
	local	4,000000,open
	con	0,010000,1,157
	declend
	filen	db.icn
	line	26
	colm	11
	synt	any
	mark	L1
	line	27
	colm	4
	synt	ifelse
	mark	L2
	pnull
	var	3
	line	27
	colm	7
	synt	any
	null
	unmark
	mark	L4
	var	4
	var	0
	str	0
	var	1
	var	2
	line	27
	colm	33
	synt	any
	invoke	4
	line	27
	colm	22
	synt	any
	pret
lab L4
	synt	any
	pfail
	goto	L3
lab L2
	mark	L5
	var	4
	var	0
	str	0
	var	1
	var	2
	var	3
	line	28
	colm	20
	synt	any
	invoke	5
	line	28
	colm	9
	synt	any
	pret
lab L5
	synt	any
	pfail
lab L3
	line	27
	colm	4
	synt	endifelse
	unmark
lab L1
	pnull
	line	29
	colm	1
	synt	any
	pfail
	end
proc dbfetch
	local	0,001000,db
	local	1,000000,dbfetch
	local	2,000000,fetch
	declend
	line	32
	colm	12
	synt	any
	mark	L1
	pnull
	var	1
	var	2
	line	33
	colm	12
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	mark	L3
	var	2
	var	0
	line	34
	colm	16
	synt	any
	invoke	1
	line	34
	colm	4
	synt	any
	pret
lab L3
	synt	any
	pfail
	unmark
lab L2
	pnull
	line	35
	colm	1
	synt	any
	pfail
	end
proc dbclose
	local	0,001000,db
	local	1,000000,dbclose
	local	2,000000,close
	declend
	line	38
	colm	12
	synt	any
	mark	L1
	pnull
	var	1
	var	2
	line	39
	colm	12
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	mark	L3
	var	2
	var	0
	line	40
	colm	16
	synt	any
	invoke	1
	line	40
	colm	4
	synt	any
	pret
lab L3
	synt	any
	pfail
	unmark
lab L2
	pnull
	line	41
	colm	1
	synt	any
	pfail
	end
proc dbsql
	local	0,001000,db
	local	1,001000,sqlstatement
	local	2,000000,dbsql
	local	3,000000,sql
	declend
	line	44
	colm	12
	synt	any
	mark	L1
	pnull
	var	2
	var	3
	line	45
	colm	10
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	mark	L3
	var	3
	var	0
	var	1
	line	46
	colm	14
	synt	any
	invoke	2
	line	46
	colm	4
	synt	any
	pret
lab L3
	synt	any
	pfail
	unmark
lab L2
	pnull
	line	47
	colm	1
	synt	any
	pfail
	end
proc dbdelete
	local	0,001000,db
	local	1,001000,filter
	declend
	line	51
	colm	12
	synt	any
	line	55
	colm	1
	synt	any
	pfail
	end
proc dbinsert
	local	0,001000,db
	local	1,001000,rec
	local	2,000000,s
	local	3,000000,t
	local	4,000000,k
	local	5,000000,key
	local	6,000000,sql
	con	0,010000,12,111,116,123,105,122,124,040,111,116,124,117,040
	con	1,010000,1,050
	con	2,010000,1,054
	con	3,002000,1,1
	con	4,010000,10,051,040,126,101,114,125,105,123,040,050
	con	5,010000,1,051
	declend
	line	57
	colm	12
	synt	any
	mark	L1
	pnull
	var	2
	pnull
	pnull
	str	0
	var	3
	line	58
	colm	24
	synt	any
	cat
	str	1
	line	58
	colm	29
	synt	any
	cat
	line	58
	colm	6
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	line	59
	colm	4
	synt	every
	mark0
	pnull
	var	4
	var	5
	var	1
	line	59
	colm	18
	synt	any
	invoke	1
	line	59
	colm	12
	synt	any
	asgn
	pop
	mark0
	mark	L5
	pnull
	var	2
	dup
	var	4
	line	59
	colm	31
	synt	any
	cat
	asgn
	unmark
lab L5
	pnull
	var	2
	dup
	str	2
	line	59
	colm	40
	synt	any
	cat
	asgn
	unmark
lab L3
	efail
lab L4
	line	59
	colm	4
	synt	endevery
	unmark
lab L2
	mark	L6
	pnull
	var	2
	pnull
	var	2
	int	3
	pnull
	int	3
	line	60
	colm	13
	synt	any
	neg
	line	60
	colm	12
	synt	any
	synt	any
	sect
	line	60
	colm	6
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	var	2
	dup
	str	4
	line	61
	colm	6
	synt	any
	cat
	asgn
	unmark
lab L7
	mark	L8
	line	62
	colm	4
	synt	every
	mark0
	pnull
	var	4
	var	5
	var	1
	line	62
	colm	18
	synt	any
	invoke	1
	line	62
	colm	12
	synt	any
	asgn
	pop
	mark0
	mark	L11
	pnull
	var	2
	dup
	pnull
	var	1
	var	4
	line	62
	colm	39
	synt	any
	subsc
	line	62
	colm	31
	synt	any
	cat
	asgn
	unmark
lab L11
	pnull
	var	2
	dup
	str	2
	line	62
	colm	45
	synt	any
	cat
	asgn
	unmark
lab L9
	efail
lab L10
	line	62
	colm	4
	synt	endevery
	unmark
lab L8
	mark	L12
	pnull
	var	2
	pnull
	var	2
	int	3
	pnull
	int	3
	line	63
	colm	13
	synt	any
	neg
	line	63
	colm	12
	synt	any
	synt	any
	sect
	line	63
	colm	6
	synt	any
	asgn
	unmark
lab L12
	mark	L13
	pnull
	var	2
	dup
	str	5
	line	64
	colm	6
	synt	any
	cat
	asgn
	unmark
lab L13
	mark	L14
	mark	L15
	var	6
	var	0
	var	2
	line	65
	colm	14
	synt	any
	invoke	2
	line	65
	colm	4
	synt	any
	pret
lab L15
	synt	any
	pfail
	unmark
lab L14
	pnull
	line	66
	colm	1
	synt	any
	pfail
	end
proc dbselect
	local	0,001000,db
	local	1,001000,cols
	local	2,001000,filter
	local	3,001000,order
	local	4,000000,s
	local	5,000000,tabl
	local	6,000000,sql
	con	0,010000,1,052
	con	1,010000,7,123,105,114,105,103,124,040
	con	2,010000,6,040,106,122,117,115,040
	con	3,010000,7,040,127,110,105,122,105,040
	con	4,010000,10,040,117,122,104,105,122,040,102,131,040
	declend
	line	68
	colm	12
	synt	any
	mark	L1
	pnull
	pnull
	var	1
	line	69
	colm	3
	synt	any
	null
	str	0
	line	69
	colm	9
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	4
	pnull
	pnull
	pnull
	str	1
	var	1
	line	70
	colm	18
	synt	any
	cat
	str	2
	line	70
	colm	26
	synt	any
	cat
	var	5
	line	70
	colm	38
	synt	any
	cat
	line	70
	colm	5
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	var	4
	dup
	pnull
	str	3
	pnull
	var	2
	line	71
	colm	23
	synt	any
	nonnull
	line	71
	colm	20
	synt	any
	cat
	line	71
	colm	5
	synt	any
	cat
	asgn
	unmark
lab L3
	mark	L4
	pnull
	var	4
	dup
	pnull
	str	4
	pnull
	var	3
	line	73
	colm	26
	synt	any
	nonnull
	line	73
	colm	23
	synt	any
	cat
	line	73
	colm	5
	synt	any
	cat
	asgn
	unmark
lab L4
	mark	L5
	mark	L6
	var	6
	var	0
	var	4
	line	74
	colm	13
	synt	any
	invoke	2
	line	74
	colm	3
	synt	any
	pret
lab L6
	synt	any
	pfail
	unmark
lab L5
	pnull
	line	75
	colm	1
	synt	any
	pfail
	end
proc dbupdate
	local	0,001000,f
	local	1,001000,rec
	local	2,000000,s
	local	3,000000,tabl
	local	4,000000,sql
	local	5,000000,db
	con	0,010000,7,125,120,104,101,124,105,040
	con	1,010000,5,040,123,105,124,040
	con	2,010000,7,040,127,110,105,122,105,040
	declend
	line	77
	colm	12
	synt	any
	mark	L1
	pnull
	var	2
	pnull
	pnull
	str	0
	var	3
	line	78
	colm	18
	synt	any
	cat
	str	1
	line	78
	colm	26
	synt	any
	cat
	line	78
	colm	5
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	2
	dup
	str	2
	line	80
	colm	5
	synt	any
	cat
	asgn
	unmark
lab L2
	mark	L3
	mark	L4
	var	4
	var	5
	var	2
	line	82
	colm	13
	synt	any
	invoke	2
	line	82
	colm	3
	synt	any
	pret
lab L4
	synt	any
	pfail
	unmark
lab L3
	pnull
	line	83
	colm	1
	synt	any
	pfail
	end
