RETURN command

[ Home / SQLBatch Home / Documentation / Commands ]


SYNTAX

RETURN [ return_code ]

DESCRIPTION

RETURN command stops execution of the current script and returns control back to the calling script or exits SB if the current script is on the top of call stack

EXAMPLE 1

-- test.sql
{tab = arg;}
{#if !tab}
	? {uc script_name}: Invalid argument!
	RETURN
{#end}
-- continue 
? OK: {tab}
--end of test.sql

SQL>@@test 
TEST: Invalid argument
SQL>@@test Emp
OK: Emp

Copyright (C) 1999 - 2024 Anatoly Moskovsky Report a site problem