Hello,
I am creating a procedure in a workspace in the HANA Development Perspective. The procedure is being converted from MSSQL to HANA. I need to use defaults for some of the IN parameters as it is intended that they will be optional parameters. See below:
-- Required Parameters
IN ExactMatch smallint, --Applies only on FamName matches
RecentDataOnly smallint, --Look for StopDate IS NULL
-- Optional Parameters
ActiveOnly smallint default '-1', --StsCd=1 (Active), 2 (Inactive), etc.
IncludePatientsOnly smallint default '-1',
IncludeGuarantorsOnly smallint default '-1',
FunctionName varchar(253) default ' ',
FamName varchar(254) default ' ', --Can specify this or @Soundex, but not both.
Soundex char(4) default ' ', --FamNameSndxText
GivenName varchar(254) default ' ',
MiddleInitial varchar(254) default ' ',
Wheh I try to activate the procedure via the workspace it does not seem to like the 'default'. The error shows:
Syntax error: "default" is incorrect or misplaced.
If I try to create the procedure via the SQL Console, there is no such issue and it creates without any problems.
I am on SPS6 environment.
Is this type of coding supported in the workspace or is there another way I can code this?
Regards and Thanks,
Neil.