SBMJOB’s RQSDTA Parameter
December 11, 2002 Timothy Prickett Morgan
In the “Odds and Ends” column that published in Midrange Guru on November 8, 2002, you wrote about appending an extra character to the end-of-character parameters that are longer than 32 characters in order to pass them through the Submit Job (SBMJOB) command without running into the problem of garbage data replacing trailing blanks. There is another alternative.
The alternative choice is to use the Request Data (RQSDTA) parameter instead of the Command (CMD) parameter.
These two simple example CL programs show the difference:
TstSbmPgm: pgm dcl &cmdstr *char 64 value( 'sndmsg hi MyMsgQ' ) dcl