version	U12.1.00
uid	basename.u1-1786291369-0
impl	error
global	1
	0,000005,basename,2

proc basename
	local	0,001000,name
	local	1,001000,suffix
	local	2,000020,i
	local	3,000020,base
	local	4,000000,upto
	local	5,000000,tab
	local	6,000000,integer
	con	0,020000,3,057,134,072
	con	1,002000,1,1
	con	2,002000,1,0
	declend
	filen	basename.icn
	line	24
	colm	11
	synt	any
	mark	L1
	var	0
	line	27
	colm	9
	synt	any
	bscan
	mark	L2
	line	28
	colm	7
	synt	every
	mark0
	pnull
	var	2
	var	4
	cset	0
	line	28
	colm	22
	synt	any
	invoke	1
	line	28
	colm	15
	synt	any
	asgn
	pop
lab L3
	efail
lab L4
	line	28
	colm	7
	synt	endevery
	unmark
lab L2
	mark	L5
	var	5
	pnull
	var	6
	var	2
	line	29
	colm	18
	synt	any
	invoke	1
	int	1
	line	29
	colm	22
	synt	any
	plus
	line	29
	colm	10
	synt	any
	invoke	1
	unmark
lab L5
	line	30
	colm	7
	synt	ifelse
	mark	L6
	pnull
	var	3
	var	5
	pnull
	pnull
	pnull
	var	1
	line	30
	colm	28
	synt	any
	nonnull
	line	30
	colm	27
	synt	any
	size
	line	30
	colm	26
	synt	any
	neg
	line	30
	colm	24
	synt	any
	invoke	1
	line	30
	colm	17
	synt	any
	asgn
	pop
	pnull
	var	1
	line	30
	colm	42
	synt	any
	tabmat
	unmark
	mark	L8
	var	3
	line	30
	colm	55
	synt	any
	pret
lab L8
	synt	any
	pfail
	goto	L7
lab L6
	mark	L9
	var	5
	int	2
	line	31
	colm	23
	synt	any
	invoke	1
	line	31
	colm	12
	synt	any
	pret
lab L9
	synt	any
	pfail
lab L7
	line	30
	colm	7
	synt	endifelse
	line	27
	colm	9
	synt	any
	escan
	unmark
lab L1
	pnull
	line	33
	colm	1
	synt	any
	pfail
	end
