TechTip: Updated SAVLIBL and RSTLIBL Utilities

CL
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times
In the January 1998 issue of Midrange Computing, Ernie Malaga published the Save Library List (SAVLIBL) and Restore Library List (RSTLIBL) utilities. SAVLIBL saves the current user library list in a last-in, first-out data queue. RSTLIBL pops the most-recent entry off the data queue and sets the library list to the saved setting.

In OS/400 V5R1, IBM expanded the size of the user library list from 25 to 250 library names. Because I use Ernie's utilities, I modified the CL source code to handle the new threshold.

The SAVLIBL and RSTLIBL utilities are built from four source members--two commands and two CL programs. The CL programs require Ernie's Forward Program Message utility, which is also created from a command source and CL source member. All required source members are listed in the table below.

Source Members Required for the SAVLIBL and RSTLIBL Utilities
Member
Type
Description
FWDPGMMSG
CMD
Forward program message command
PGM007CL
CLP
Forward program message, command-processing program
SAVLIBL
CMD
Save library list command
LIBL007CL
CLP
Save library list, command-processing program
RSTLIBL
CMD
Restore library list command
LIBL008CL
CLP
Restore library list, command-processing program


The only members that had to be updated are PGM007CL and PGM008CL, which you can download. Everything else you need is in the two articles referenced above.

Jeff Brown is a programmer/analyst for Sweetwater County in Green River, Wyoming. He been working with IBM midrange computers since 1988 (the S/38) and the AS/400 (oops, iSeries!) since 1990. He started in S/38 operations as a programmer "understudy" and was promoted to programmer/analyst around 1996. He's currently working on a Model 730 iSeries running V5R2, programming in ILE RPG and CL (Java is something he has in the morning to wake him up). His email at work is 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: