SBMJOB, CALL, And Decimal Parameters
February 23, 2016 Ted Holt
In spite of my great admiration for the IBM i operating system, I have to admit it has its idiosyncrasies. One of them, which has been there since Day 1, is the way the Submit Job (SBMJOB) command reformats decimal parameters of the CALL command. Fortunately, a relatively recent addition to CL provides an easy way to deal with this quirk. Assume a CL program calls an RPG program, passing along two decimal variables and a character variable. dcl &Option *char 1 dcl &Account *dec 5 dcl &ThruDate *dec 7 call AR100R (&Account &ThruDate &Option) One day you are told |