Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. tcrisman

    running c++ program from unix command line with input and output files

    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...
  2. tcrisman

    Problem creating UDF for a specific date format

    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...
  3. tcrisman

    Values from External Routines

    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...
  4. tcrisman

    DB2 Equivalent of 'TOP' or 'FIRST'

    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...

Part and Inventory Search

Back
Top