Learning path
From first sign-on to running the system.
29 guided lessons, about 10 h 30 min in all. Each one runs on your own system in the browser and checks your work as you go.
- Find your way around 3 lessons
- Write your first programs 5 lessons
- Build applications 7 lessons
- Run and look after the system 8 lessons
- Day-to-day work on the system 6 lessons
Stage 1 · 3 lessons · about 45 min
Find your way around
Sign on, move between menus and the command line, create your own library and edit a source member.
-
Lesson 01 · about 15 min · 3 steps
Sign on, menus and the command line
On a new system sign on as QSECOFR with password QSECOFR: the password is shipped expired, so the system asks you to choose a new one (6 to 8 letters or digits by default).
What you will do:
- Sign on
- Open a menu
- Use the command line
-
Lesson 02 · about 15 min · 3 steps
Libraries, objects and the library list
A library groups named, typed objects.
What you will do:
- Create a library
- Add the library
- Find your objects
-
Lesson 03 · about 15 min · 3 steps
PDM and the editor
PDM lists source members.
What you will do:
- Create a source file
- Create NOTES
- Browse the members
Stage 2 · 5 lessons · about 1 h 25 min
Write your first programs
Compile and call CL, COBOL and RPG programs, describe files with DDS and query them with SQL.
-
Lesson 04 · about 15 min · 3 steps
Your first CL program
CL drives system commands.
What you will do:
- Write CL source
- Compile
- Call
-
Lesson 05 · about 20 min · 4 steps
Your first COBOL program
Compile source into a *PGM, then call it.
What you will do:
- Create source file
- Write source
- Compile
- Call
-
Lesson 06 · about 20 min · 4 steps
Your first RPG program
Compile source into a *PGM, then call it.
What you will do:
- Create source file
- Write source
- Compile
- Call
-
Lesson 07 · about 15 min · 3 steps
Physical and logical files with DDS
A PF holds records; an LF offers another access path over the same records.
What you will do:
- Create DDS source file
- Create a PF
- Create an LF
-
Lesson 08 · about 15 min · 3 steps
SQL with STRSQL
Db2 SQL and DDS record access share files.
What you will do:
- Insert three colors
- Query your data
- Update a row
Stage 3 · 7 lessons · about 2 h 25 min
Build applications
Screens and subfiles, batch reports, a complete sample application, embedded SQL, menus and data entry.
-
Lesson 09 · about 15 min · 3 steps
Display files and subfiles
Explore a working RPG WORKSTN program before adapting it.
What you will do:
- Install ORDERS
- Inspect the display source
- Run the subfile
-
Lesson 10 · about 15 min · 3 steps
Batch jobs, job queues and spooled files
Batch jobs run independently.
What you will do:
- Submit a report
- Inspect the job queue
- Inspect spool
-
Lesson 11 · about 20 min · 5 steps
Exploring the ORDERS application
Follow the menu from source to database, ILE and batch work.
What you will do:
- Install the application
- Open ORDERS
- Call the shared service
- Send work to a batch receiver
- Query open orders
-
Lesson 12 · about 25 min · 6 steps
PDM day to day
Compile in batch, change your PDM defaults, add your own options and search your source.
What you will do:
- Create a library and a source file
- Write GREET
- Compile in batch with option 14
- Change your defaults with F18
- Add your own option with F16
- Search the source with FNDSTRPDM
Commands:
CRTLIB,CRTSRCPF,WRKMBRPDM,DSPMSG,FNDSTRPDM,WRKSPLF -
Lesson 13 · about 30 min · 7 steps
Embedded SQL in RPG and COBOL
SQL statements can live inside RPG and COBOL.
What you will do:
- Create a schema and a table
- Add stock
- Create a source file
- A cursor and a multiple-row FETCH in RPG
- Run the report
- Commitment control in COBOL
- See what the program stored
Commands:
STRSQL,CRTSRCPF,WRKMBRPDM,CRTSQLRPGI,CALL,CRTSQLCBLI,PRTSQLINF,WRKSPLF -
Lesson 15 · about 20 min · 5 steps
Data entry with DFU
DFU builds a data entry program over a file without writing code.
What you will do:
- Create a library and a source file
- Create the parts file
- Define the DFU program
- Enter parts
- Change a record with CHGDTA
Commands:
CRTLIB,CRTSRCPF,WRKMBRPDM,CRTPF,STRDFU,CHGDTA
Stage 4 · 8 lessons · about 3 h 15 min
Run and look after the system
Work management, security, Qshell, debugging, help panels, save and restore, SQL performance and job accounting.
-
Lesson 16 · about 25 min · 6 steps
Work management
Submit batch jobs, watch them in WRKACTJOB, end one, and read job logs and spooled files.
What you will do:
- Submit a long job
- Watch it in WRKACTJOB
- End the job
- Keep a job log
- Your own job log
- Spooled files
-
Lesson 17 · about 25 min · 6 steps
Security basics
User profiles, object authority and authorization lists.
What you will do:
- Check the security level
- Create a user profile
- Grant private authority
- Exclude the public
- Create an authorization list
- Secure an object with the list
Commands:
WRKSYSVAL,CRTUSRPRF,CRTLIB,CRTDTAARA,GRTOBJAUT,DSPOBJAUT,CRTAUTL,ADDAUTLE,DSPAUTL -
Lesson 18 · about 20 min · 5 steps
Qshell scripts
Work with IFS files, pass output through a pipe and run IBM i commands and SQL from a shell script.
What you will do:
- Start Qshell
- Sort lines through a pipe
- Write a script with a function and a loop
- Run the script
- Run a shell command from CL
-
Lesson 19 · about 20 min · 5 steps
Debug an RPG program
Compile with source debug information, examine a data structure, and follow the program into a procedure.
What you will do:
- Create a library and a source file
- Compile with a source view
- Set a breakpoint
- Evaluate, watch and step into TWICE
- End debugging
Commands:
CRTLIB,CRTSRCPF,WRKMBRPDM,CRTBNDRPG,STRDBG,CALL,ENDDBG -
Lesson 20 · about 20 min · 4 steps
Your own help and panels
Write help in the User Interface Manager (UIM), compile it into a panel group and use it from your own menu.
What you will do:
- Create a library and a source file
- Compile the help panel group
- Compile a UIM menu
- Open the menu and ask for help
Commands:
CRTLIB,CRTSRCPF,WRKMBRPDM,CRTPNLGRP,CRTMNU,GO -
Lesson 21 · about 25 min · 6 steps
Save and restore
Save a library and an individual object, restore them, and save security data separately.
What you will do:
- Make a library and a save file
- Save the library
- Restore the library under a new name
- Save a single object and its private authority
- Restore the object and inspect authority
- Save security data
Commands:
CRTLIB,CRTDTAARA,CRTSAVF,SAVLIB,DSPSAVF,RSTLIB,DSPDTAARA,GRTOBJAUT,SAVOBJ,DLTDTAARA,RSTOBJ,DSPOBJAUT,SAVSECDTA -
Lesson 22 · about 35 min · 9 steps
SQL performance
Create an index, read optimizer messages and print an access plan.
What you will do:
- Prepare a library and query options file
- Create two tables in STRSQL
- Add data and an index
- Capture optimizer messages for a join
- Read the job log and end debug
- Print the program access plan
- Set an optimization goal in QAQQINI
- Try a zero-second query time limit
- Restore the job query settings
Commands:
CRTLIB,CRTSRCPF,CRTDUPOBJ,STRSQL,STRDBG,SELECT,DSPJOBLOG,ENDDBG,WRKMBRPDM,CRTSQLRPGI,PRTSQLINF,WRKSPLF,CHGQRYA -
Lesson 23 · about 25 min · 6 steps
Job accounting
Collect job accounting records and query them with SQL.
What you will do:
- Create the accounting journal
- Turn on job accounting
- Submit a job with an accounting code
- Copy job entries to an outfile
- Read the job record with SQL
- Turn accounting back off
Commands:
CRTJRNRCV,CRTJRN,CHGSYSVAL,SBMJOB,CRTDUPOBJ,DSPJRN,STRSQL,SELECT
Stage 5 · 6 lessons · about 2 h 40 min
Day-to-day work on the system
Stream files in the IFS, scheduled jobs and the reply list, Query/400 reports, interactive SQL in depth, menus built from the supplied source and a second sample application with service programs and transactions.
-
Lesson 24 · about 20 min · 4 steps
Stream files in the IFS
Create and edit a stream file with EDTF, read it with DSPF, find it with WRKOBJLNK and change its lines in interactive Qshell.
What you will do:
- Create a stream file in EDTF
- Read it with DSPF
- Find it in the IFS
- Change lines in Qshell
-
Lesson 25 · about 35 min · 9 steps
Schedules and the reply list
Let the system run a job on a schedule and answer the questions your program asks.
What you will do:
- Create a library for the work
- Add the question and the answer message
- Write the CL program
- Compile it
- Add a reply list entry
- Call the program and watch it answer
- Look at the reply list
- Add a weekly job schedule entry
- Submit the entry now
Commands:
CRTLIB,CRTSRCPF,CRTMSGF,ADDMSGD,CHGMSGD,WRKMBRPDM,CRTBNDCL,ADDRPYLE,CHGJOB,CALL,WRKRPYLE,ADDJOBSCDE,CHGJOBSCDE,WRKJOBSCDE,DSPMSG -
Lesson 26 · about 30 min · 7 steps
Query/400 reports
Define a Query/400 report over a table: choose the file, keep one region, total the quantities and write a summary file.
What you will do:
- Create the table to report on
- Fill it with three rows
- Create a query and select its file
- Keep the northern rows only
- Report one field and total it
- Write the summary to a file
- Run the saved query
-
Lesson 27 · about 25 min · 6 steps
Interactive SQL in depth
Let STRSQL prompt a statement for you with F4, print query results to a printer file and print the whole session with F13 Session Services.
What you will do:
- Create a table to work with
- Add three rows
- Let F4 prompt an INSERT
- Send query results to the printer
- Print the whole session
- Look at the printed output
-
Lesson 29 · about 30 min · 7 steps
The INVENTORY sample: service programs and transactions
INVENTORY is a second sample in L4INV: free-form RPG with embedded SQL, a rule service program bound through a binding directory, stock movements under commitment control, and externally described printer files.
What you will do:
- Install the inventory sample
- Open its menu
- Record a stock receipt
- Browse the movement history
- Print the reorder report
- See the service program bound into a program
- Check that balance and history agree
Commands:
GO,ADDLIBLE,CALL,WRKSPLF,DSPPGM,STRSQL,SELECT
After the path
Explore the ORDERS sample application, look up any command in the command reference, or read how objects, libraries and jobs fit together.
Go deeper
These guides follow the later lessons with more commands, options and limits:
- Job schedules and the reply list extends the automation lesson with monthly rules, recovery actions and reply list matching.
- Qshell scripts and EDTF adds shell scripting and the stream file editor to the IFS and stream file lessons.
- Query/400 and interactive SQL covers saved queries, summaries, database output and STRSQL session services.
- Debugging programs explains debug views, breakpoints, EVAL, watches, OPM debug commands and code coverage.
- SSH, SFTP and FTPS connects external clients to a hosted Pro system or a standalone listener.
- Problems and operator commands follows the problem log, IPL attributes, storage reclaim, integrity checks and service tools.