TechTalk: RTGDTA and RQSDTA in Job Descriptions

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

From: Charley Shanks To: All

I've been working with job descriptions, and I'm confused about the purpose of a couple of parameters: RTGDTA and RQSDTA or CMD. Why (or how) would these parameters ever be used?

From: Pete Hall To: Charley Shanks

The routing data (RTGDTA) is data that's compared with the subsystem's routing entries when a job is initiated, to determine what the routing program (a program that is run prior to any other programs a job calls) will be. It's usually QCMDx, but it doesn't necessarily have to be. You can get a feel for it if you display one of your subsystem descriptions and look at the routing entries.

The RQSDTA and CMD parameters are where you specify your command to execute. On the S/38 there was only RQSDTA. RQSDTA is still available for the same purpose, and has one advantage: it is a text string. You can use it the same way you would use QCMDEXC if you wanted to execute a text string in line, except you're submitting it. It's extremely useful if you need to submit a command with optional parameters, and you don't know which ones are used until execution time. You just construct your command by concatenating all the pieces into a variable, and then specify RQSDTA(&CMDTXT). Works great. If you specify your own routing program, I think you can also use this parameter to pass data to it, because the value is placed in the job log and can therefore be retrieved from the job's *EXT message queue.

From: Charley Shanks To: Pete Hall

Thanks. I still don't understand why you would ever want to change the routing entry. Smoke and mirrors.

From: James Coolbaugh To: Charley Shanks

Routing entries can be useful for setting certain jobs to different priorities within the same subsystem. They can also be used for validation of requests prior to execution of the request. I know of one such implementation; if a specific routing entry was encountered, a program was called that would interrogate the request. If the program was a compile, the routing entry would open the source member to retrieve any special compile options and tack them onto the request--all before the command was ever executed.

Normally, however, you don't have to worry about the routing entries. However, under certain conditions, there are valid reasons for changing a routing entry.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: