TechTalk: Pass-through with Only QCTL Active

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

If you were to search the IBM question and answer database for keyword QCTL, you would find question number A000350: "Is there a problem running pass- through from QCTL?" The answer states that QCTL will not accept job-start requests from any device other than the console.

Luckily for those of us with remote systems, IBM's answer is not complete. By adding the proper communication and workstation entries to the QCTL subsystem description, you can pass-through to a system, as long as the system is not in a restricted state. This ability allows you to do backups on remote systems by individually ending all subsystems except the controlling subsystem, thus ensuring all jobs (except the console) are inactive.

The changes I'll demonstrate are made to a copy of subsystem QCTL. We try to avoid changing the IBM-supplied object, so that we can revert to the original subsystem description if there is a problem with the changes. First, we make our copy of the subsystem:

 CRTDUPOBJ OBJ(QCTL) FROMLIB(QSYS) + OBJTYPE(*SBSD) TOLIB(*FROMLIB) + NEWOBJ(QCTL1) 

Next, we need to create virtual displays and a virtual controller. We use device type 5251 model 11 to ensure that any model display attempting pass- through will be successful. We also create more than one virtual display in case a device error varies the virtual display off.

 CRTCTLVWS CTLD(QCTLVIRT) CRTDEVDSP DEVD(QCTLVIRT1) + DEVCLS(*VRT) TYPE(5251) MODEL(11) + CTL(QCTLVIRT) CRTDEVDSP DEVD(QCTLVIRT2) + DEVCLS(*VRT) TYPE(5251) MODEL(11) + CTL(QCTLVIRT) CRTDEVDSP DEVD(QCTLVIRT3) + DEVCLS(*VRT) TYPE(5251) MODEL(11) + CTL(QCTLVIRT) 

Next, we create a different mode so the system can distinguish our QCTL request from the normal pass-through requests. We need to run this command both on the target and source systems, so we have matching modes.

 CRTMODD MODD(#QCTL) + TEXT('Mode for QCTL Passthru') 

Now we need to add the workstation and communications entries to the subsystem description.

 ADDWSE SBSD(QCTL1) + WRKSTN(QCTLVIRT*) ADDCMNE SBSD(QCTL1) + DEV(*ALL) DFTUSR(*SYS) + MODE(#QCTL) 

Now, the only things left are to change the system value QCTL-SBSD to point to our new subsystem and to IPL the system. Do not power down the system until all users are signed off-on a weekend or at nighttime, for example.

 CHGSYSVAL QCTLSBSD + VALUE('QCTL1 QSYS') PWRDWNSYS OPTION(*IMMED) + RESTART(*YES) 

Okay. It's 7:30 Monday morning. Your branch office in Dallas calls-no one except the console has sign-on screens. Do you panic? Do you give someone at the remote location your password to sign-on and look around? No! Simply use the following pass-through command.

 STRPASTHR RMTLOCNAM(DALLAS) + VRTCTL(QCTLVIRT) MODE(#QCTL) 
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: