T.Snyder
12-31-1969, 06:33 PM
** This thread discusses the article: Get the Day of the Week, Full Text Date Values, and More Within RPG Using SQL (http://www.mcpressonline.com/index.php?option=com_content&view=article&id=16365) **
Thanks tstephens55 and R.Khoury for some great alternatives!<br/>
<br/>
<b>tstephens55</b><br/>
I don‘t see any reason why you couldn‘t use <code>values</code> instead. I‘ve used values in statements before, but never like that. I think it‘s a great alternative and I‘ll be using it. Thanks!<br/>
<br/>
<b>R.Khoury</b><br/>
You are absolutely right. For programmers that are used to using embedded SQL it would be easier to just code it in the statement. For situations where you‘re in a staff that is early in adoption of embedded SQL then using procedures could let programmers who do not feel comfortable with embedded SQL programs to access the functionality without dealing with the details or changes in the way they compile. And if for some reason you put your functions in a service program it could be like a code repository for code snippets that embedded SQL programmers, like yourself, could use to copy and paste juicy pieces of code.<br/>
<br/>
Thanks a lot for the posts! Happy Coding!<br/>
Tom
Thanks tstephens55 and R.Khoury for some great alternatives!<br/>
<br/>
<b>tstephens55</b><br/>
I don‘t see any reason why you couldn‘t use <code>values</code> instead. I‘ve used values in statements before, but never like that. I think it‘s a great alternative and I‘ll be using it. Thanks!<br/>
<br/>
<b>R.Khoury</b><br/>
You are absolutely right. For programmers that are used to using embedded SQL it would be easier to just code it in the statement. For situations where you‘re in a staff that is early in adoption of embedded SQL then using procedures could let programmers who do not feel comfortable with embedded SQL programs to access the functionality without dealing with the details or changes in the way they compile. And if for some reason you put your functions in a service program it could be like a code repository for code snippets that embedded SQL programmers, like yourself, could use to copy and paste juicy pieces of code.<br/>
<br/>
Thanks a lot for the posts! Happy Coding!<br/>
Tom