I do not understand why you aren't allowed to use your command line "histogram1 scores.txt histogramOutput.txt", at least AIX allows such a command line.
Two solutions occur to me:
1. Change your c++ program to read scores from stdin [use gets function]. The command you gave would redirect...
jstrohofer,
I'm not super familiar with the language constraints of the function, but logically, you want to convert the input year to a number, and subtract 1900 from it. A rexx snippit, for example:
year=2003;outyear=year-1900;say year outyear;
results in:
2003 103
while...
Lou,
If you are NOT working on the mainframe, REXX [at least IBM's Object Rexx] uses the reserved variable RESULT to store the return value, if any. In your example, you could do something like this:
...
call rexx2 p1 p2;
answer = RESULT;
say "Is "||answer||" what you...
The obvious answer is to use "order by" to put the rows satisfying your select in the desired sequence, and close your cursor after nnn fetches.
The last issue of DB2 magazine indicates that with version 7, you can put in a "fetch first 1 row" on a query if only one row...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.