TechTip: Missing CALL Command!

General
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times
Q: We had a programmer accidentally delete the CALL command from the AS/400. I've been trying to restore the command from our full-system backup tapes using the command RSTOBJ OBJ(CALL) SAVLIB(QSYS) DEV(QTAPE3) OBJTYPE(*CMD) ENDOPT(*UNLOAD). I keep getting an error message: "File not selected. File label or file name mismatch..." What am I doing wrong? What do I have to do to restore the command?

A: The CALL command?! Yikes! That can cause all kinds of problems!

But you can restore the command from your SAVSYS tape. Normally, a RSTOBJ looks like this:

http://www.mcpressonline.com/articles/images/2002/Missing%20CALL%20commandV400.jpg

The above works great if what you're trying to restore was saved with a SAVOBJ or SAVLIB command. But it doesn't work when you're trying to restore from a SAVSYS because *SAVLIB is the wrong LABEL parameter.

To find the proper LABEL parameter, do a DSPTAP, as shown in Figure 1:


http://www.mcpressonline.com/articles/images/2002/Missing%20CALL%20commandV401.jpg


Figure 1: Find the proper LABEL parameter for a RSTOBJ from SAVSYS.

Next, work with the spool file, and search for the object you're trying to restore. The pertinent information is shown in Figure 2:

http://www.mcpressonline.com/articles/images/2002/Missing%20CALL%20commandV402.jpg

Figure 2: DSPTAP will help you find the object you want to restore.

With the information found via the DSPTAP command, mainly the File label ID, you can now successfully restore the CALL command, like this:

http://www.mcpressonline.com/articles/images/2002/Missing%20CALL%20commandV403.jpg


On your system, the volume, sequence number, and label will be different, but this command will restore the CALL command from your SAVSYS tape. In fact, this command is what you'll need to use to manually restore any object from the SAVSYS tape.


--Bruce Bardini
This email address is being protected from spambots. You need JavaScript enabled to view it.

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: