SELECT_SQL - Connect to server
Posted: Fri Mar 16, 2018 7:14 am
With Independent Windows Workstation and VLF-ONE development we have the problem of there being no data available in the local database for the developer to test with. The specific situation encountered here is VLF-ONE development. To allow VLF-ONE server modules to connect to an iSeries database when run on a windows machine (localhost) we are sending a value to the server module that initiates the define_server/define_db_server, connect_server, connect file BIF's before selecting data. This works OK for the SELECT command but has issues with the SELECT_SQL command
When using the define_db_server BIF this works fine for the following command;
Select Fields(#column1) From_File(DEBUG) Io_Error(*NEXT)
Endselect
Works without error for the following command but seems to ignore the where clause;
Select_Sql Fields(#column1) From_Files((debug)) Where(#SQl_string) Io_Error(*NEXT)
Endselect
Errors on the following command;
Select_Sql Fields(#column1) Io_Error(*NEXT) Using(#SQl_string)
Endselect
Of course the method we are using the most is the last example. Is there any way to manipulate the connection to support the use of the SELECT_SQL commands, particularly in the last example, or is there another method of implementing this? Any other solutions that do not involve replicating/creating data on all developer systems?
When using the define_db_server BIF this works fine for the following command;
Select Fields(#column1) From_File(DEBUG) Io_Error(*NEXT)
Endselect
Works without error for the following command but seems to ignore the where clause;
Select_Sql Fields(#column1) From_Files((debug)) Where(#SQl_string) Io_Error(*NEXT)
Endselect
Errors on the following command;
Select_Sql Fields(#column1) Io_Error(*NEXT) Using(#SQl_string)
Endselect
Of course the method we are using the most is the last example. Is there any way to manipulate the connection to support the use of the SELECT_SQL commands, particularly in the last example, or is there another method of implementing this? Any other solutions that do not involve replicating/creating data on all developer systems?