21
Thu, Nov
1 New Articles

A Basic AS/400 Skills Checklist

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

As an IS manager, you want the best people in the business working for you. Sometimes, you are lucky enough to find someone with all the right skills; other times, you need to do a little training. Regardless of the way you go about it, entry-level programmers have to meet a certain level of competence to make your business successful.

To get your entry-level programmers up to speed in a hurry, you need to make sure that they have core knowledge. Regardless of the business you run, every new programmer should be familiar with—better yet, competent in—the skills I’ve outlined in this article. This list may become part of the performance reviews for your staff. You may even use it to direct the questions you ask during hiring interviews.

By providing an educational path, you will challenge your programmers to keep learning new skills. Plain old on-the-job training usually just results in employees learning an incomplete set of skills and fearing unlearned techniques. You want to provide a guide for them to become well-rounded programmers with an enthusiasm for learning.

Because the AS/400 is a powerful and evolving system, programmers new to this environment may feel overwhelmed when mapping an educational path. This is because new features such as TCP/IP, HTTP Server, Domino Server, FTP, Mail Server, and Java appear with every new release of OS/400. Where do you start? Figure 1 contains a list of 28 essential AS/400 skills grouped into seven categories. A programmer who can master these skills will be able to understand and maintain most typical AS/400 systems and will be able to develop new programs and troubleshoot old ones. This list isn’t meant to be a Cliffs Notes to the AS/400; it is intended to guide your staff on a journey of discovery. Indeed, one of the most important skills your staff will learn is how to uncover solutions to these tasks.

Of course, this list is neither comprehensive nor absolute; each company has its own needs. For example, some may wish to emphasize a third-party development tool that their shops use. Others may want to focus on core programming languages such as RPG. Use the list in Figure 1 as a starting point for your own list. Think of it as an inventory of desired skills that everyone working on an AS/400 should have.


User Environment Skills

1. Display and understand your library list. You should be able to display your library list, change it, and change your current library. In addition, learn how your library list is established and how it affects submitted jobs. There are two system values that define your library list. You should also understand how your library list can be changed both by you and with certain applications and commands.

2. Add and change user profiles. You need to know how to create and change user profiles, how to enable and disable profiles, and how to change passwords. You should also understand how the user profile sets up a user’s environment with an initial menu, an initial program, special authorities, and the job description.

Database Skills

3. Create a physical file with and without key fields. Use DDS to create a database physical file.

4. Create two different logical files over a physical file. Use DDS to build two different logical files over the physical file you created in item 3. Have at least one of these logical files select only certain records using the Select or Omit keyword.

5. Add a field to a physical file that has logical files attached to it. The old way to add a field to an existing physical file was to delete all logical files attached to it, change the existing physical file, create the new file definition with the added field, copy the old file to the new one, and then rebuild the logical files. Learn the easy way to do this by using the Change Physical File (CHGPF) command.

6. Understand how to see relationships between physical and logical files. Use the Display Database Relations (DSPDBR) command to see and understand which logical files depend on which physical files. This will also teach you how to troubleshoot confusing situations where the logical file is not using the physical file you thought it was using.

7. Understand the difference between packed decimal fields and zoned (signed) decimal fields. This is especially important when you need to move data to and from PCs. Packed decimal fields are peculiar to midrange and mainframe systems and completely foreign to most PC and UNIX programmers, although some VAX systems using COBOL compilers support them.

General RPG Programming Skills

8. Understand how parameters are passed to and from RPG programs. Learn about the entry parameter list that RPG uses when it starts a program.

9. Write a print program to list a file. Write a simple report with headings and totals. Do it once using OUTPUT specs in an RPG program. Then, do it again using DDS to create a print file layout. Use RLU to view the print layout.

10. Write an RPG program to allow the user to enter a selection para-meter for the print program. Use the Submit Job (SBMJOB) command to run the job as a batch program. For example, print orders for customers only in Texas. This is messier than it looks. You will probably have to write a display file, an RPG program, and one or more CL programs to accomplish this, but at least it will give you experience passing parameters between programs.


11. Write an RPG program to read values from a data area and display and change them.

12. Use the Convert RPG Source (CVTRPGSRC) command to convert a program from RPG III to RPG IV. CVTRPGSRC is used to convert legacy RPG III programs into state- of-the-art RPG IV programs. Converting an RPG III program can help you learn RPG IV syntax by using a program you are already familiar with.

Interactive RPG Programming Skills

13. Write an Add/Change/Delete/Inquire maintenance program. If you can write a good, well-designed, functional program to maintain records in a database file, you’re doing a lot. And, if you do it right the first time, you’ll have a model that you can use for future programming projects.

14. Add a subfile search by a different key for item 13. This is a more advanced technique. Add a function key selection to accept a search key. For example, add the ability to list names that begin with M. Use a subfile display for your user to select the desired search value and the desired name. You will have to know how to use the Set Lower Limit (SETLL) and Read Equal (READE) op codes to dynamically navigate through an indexed database.

15. Change the subfile search in item 14 to load only one screen at a time. This is the most advanced programming technique on this list. It is usually called a “page-at-a-time” subfile. It builds one screen at a time and grows each time the user pages down.

16. Add to the maintenance program an edit that requires chaining to another database. Add an edit to check for valid state codes or part numbers. This isn’t hard, but it is an essential step in building complex data entry programs.

CL Programming Skills

17. Understand how parameters are passed to and from CL programs. You can pass parameters using the local data area (LDA), but here you should learn about using parameters in the PGM statement at the beginning of the program.

18. Repeat item 10 but use CL to display the selection screen. For simple selection entry, you can do this without RPG. Define the display file using a Declare File (DCLF) statement in the CL program and displaying it with Send/Receive File (SNDRCVF) .

19. Change the print program in item 9 to list the file in a different sequence by using Open Query File (OPNQRYF). This is another advanced technique peculiar to the AS/400.

20. Understand the use of the Monitor Message (MONMSG) command in CL programs. Learn about the “catch all” CPF0000 message ID and how to look for specific conditions such as missing files or other “trapped” errors.

21. Write a CL program to read values from a data area and display and change them. This is like item 11. Use a CL program to retrieve values from a data area, show a display screen with these values, read the display screen, and update the data area.


Programming Tools Skills

22. Use selection 25 in PDM to search through source code. For example, list all programs that use database CUST. This is an essential skill for diagnosing and understanding someone else’s system.

23. Use DFU to change data in a database. If you have other third-party database file utilities, learn them also.

24. Write a Query/400 program to display a file. Query/400 is an extremely powerful tool that is simple to learn.

25. Write a Query/400 program to print a file. Have fun with this one. Query/400 is so easy that you’ll want to sort records, summarize amounts, and use break totals, but this is possible only if you have the Query/400 licensed program.

26. Use SDA to create a simple menu. Create a menu that a user could use to call the programs in items 9, 11, 13, and 21.

27. Use SDA to create a help screen for the simple menu. This will show your users a help screen that describes selections in the menu.

File Transfer Skills

28. Use your company’s method to transfer data to and from a PC. There are various ways to transfer data between a PC and an AS/400. Your shop may use the Copy to PC Document (CPYTOPCD) and Copy from PC Document (CPYFRMPCD) commands to move data to and from Client Access folders, or you may use FTP or other third-party transfer software. This skill becomes more important every day as your users expect you to accept data from their PCs.

Research Is Key

The most important skill for your programmers to acquire is the ability to research AS/400 techniques. They should start by looking in your library of Midrange Computing magazines. My favorite resource is Midrange Computing’s ResourceCD; it has over eight years of back issues and is searchable. Every skill I’ve listed in this article has been discussed at least once in a Midrange Computing article.

Use Midrange Computing’s Web site at www.

midrangecomputing.com/forums to access its online Discussion Forums. In these forums, anyone can post questions that will be answered by other AS/400 professionals who enjoy helping out. You can learn a lot without even posting questions; just read everyone else’s questions and answers. While you’re on the Web site, also check out the Company Store. In it, you will find useful books, videos, CD-ROMs, and seminar schedules. Most of the books are packed with tips and examples of code; reading each one is like taking a private college course.

Join the Mainstream!

The skills I have discussed are mainstream skills required in most AS/400 environments. With these skills, your programmers can create and maintain complete, integrated systems. Once they have mastered this list, they will be ready for newer, more exotic areas. Once the foundation has been established, they will be able to build on their basic skills until they become master programmers.


References and Related Materials

• AS/400 Basic System Operation, Administration, and Problem Handling V4R4 (SC41- 5206-03, CD-ROM QB3AGO03)

• DDS Reference (SC41-5712-02, CD-ROM QB3AUI02)

• ILE RPG for AS/400 Programmer’s Guide (SC09-2507-02, CD-ROM QB3AGY03)

• Open Query File Magic!—Second Edition. Ted Holt. Carlsbad, California: MC Publishing Co., 1998

• OS/400 CL Programming V4R4 (SC41-5721-02, CD-ROM QB3AUO02)

• Subfiles for RPG Programmers. Michael Catalani. Carlsbad, California: MC Publishing Co., 1994

• The AS/400 Programmer’s Handbook. Mark McCall. Carlsbad, California: MC Publishing Co., 1998


User Environment Skills

r 1. Display and understand your library list.

r 2. Add and change user profiles.

Database Skills

r 3. Create a physical file with and without key fields.

r 4. Create two different logical files over a physical file.

r 5. Add a field to a physical file that has logical files attached to it.

r 6. Understand how to see relationships between physical and logical files.

r 7. Understand the difference between packed decimal fields and zoned

(signed) decimal fields.

General RPG Programming Skills

r 8. Understand how parameters are passed to and from RPG programs.

r 9. Write a print program to list a file.

r 10. Write an RPG program to allow the user to enter a selection parameter for the print program.

r 11. Write an RPG program to read values from a data area and display and change them.

r 12. Use CVTRPGSRC to convert a program from RPG III to RPG IV.

Interactive RPG Programming Skills

r 13. Write an Add/Change/Delete/Inquire maintenance program.

r 14. Add a subfile search by a different key for item 13.

r 15. Change the subfile search to load only one screen at a time.

r 16. Add to the maintenance program an edit that requires chaining to another database.

CL Programming Skills

r 17. Understand how parameters are passed to and from CL programs.

r 18. Repeat item 10 but use CL to display the selection screen.

r 19. Change the print program in item 9 to list the file in a different sequence by using OPNQRYF.

r 20. Understand the use of MONMSG in CL programs.

r 21. Write a CL program to read values from a data area and display and change them.

Programming Tools Skills

r 22. Use selection 25 in PDM to search through source code.

r 23. Use DFU to change data in a database.

r 24. Write a Query/400 program to display a file.

r 25. Write a Query/400 program to print a file.

r 26. Use SDA to create a simple menu.

r 27. Use SDA to create a help screen for the simple menu.

File Transfer Skills

r 28. Transfer data to and from a PC.

Figure 1: Here is a summary of basic AS/400 skills for quick reference.


BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • 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.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • 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

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • 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: