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

    Trouble Passing Numeric Parms

    Fooch, If you are talking about calling an RPG program from a CL program, remember that numeric parms are passed from a CL as 15/5. When faced with this situation I always define the numeric parms as such in both the CL and RPG programs and then convert the values passed to the RPG program...
  2. AlanHouston

    Trouble Passing Numeric Parms

    Fooch, If you are going to pass numeric parms from a command line you need to tell the system that you are passing hex values for the numeric parms. The command shown below should do what you want: call pl0330r01 ('Test' X'00055F' 'I' X'01234567890F' 'O') Notice that the numeric parms are...
  3. AlanHouston

    Variables Not Cleared After Program Ends

    jsplice, Sounds like your program ends with *INLR = *off. If the program ends with only a Return, the variables are not cleared.
  4. AlanHouston

    r&r

    R&R in Bangkok.
  5. AlanHouston

    r&r

    In Viet Nam it stood for Rest and recuperation.
  6. AlanHouston

    Using a variable in CALLB

    TracyV; If you have ever read much written by Bob Cozzi you might remember that he very strongly says "You call programs and procedures, not modules". The design of binding modules at compile time is as obsolete as the CallB opcode. I would suggest that you use FlapEyre's suggestion and...
  7. AlanHouston

    Date Conversion

    Of course, if you want the system date then the following will do: Date8 = %int(%char(%Date(): *iso0));
  8. AlanHouston

    Date Conversion

    You don't need to use Move or create a service program. Assuming your 8 digit date should be in yyyymmdd format, the following will work. Date8 = %int(%char(DateIso : *iso0)); Notice the "0" following "*iso" Date8 is an 8 digit numeric field and DateIso is a date field in ISO format.

Part and Inventory Search

Back
Top