Week # 2 - Agenda Types of AS/400 Objects Qualified/Unqualified Names

Slides:



Advertisements
Similar presentations
IEXL -- Green is great but sometimes only color will do … Simplify creation of spreadsheets, directly from the Iseries Keep your cost down Leverage your.
Advertisements

Week # 3 AS/400 Library List A library list is:
August 29, Accessing the iSeries and Some Commands.
Getting Started with AgVantage Tips to Get Started on the Right Path with AgVantage Software.
CIMS FMS. CIMS Navigation Tips Function keys Working with spool files/ jobs CIMS navigation.
iSeries Lecture 2 Technology independence Technology independence  change the underlying hardware architecture and add new functionality without disrupting.
Module R2 CS450. Next Week R1 is due next Friday ▫Bring manuals in a binder - make sure to have a cover page with group number, module, and date. You.
Query Manager. QM is a collection of tools you can use to obtain information from the AS/400 database Used to –select, arrange, and analyze information.
9.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 9: Installing and Configuring.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
Linux+ Guide to Linux Certification, Second Edition
iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test.
1 Intro to the AS/400 Chapter 8 - Data File Utility Copyright 1999 by Janson Industries.
Seneca College of Applied Arts & Technology
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
The AS/400 and the printing process
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Chapter 16 - Monitoring Hardware and Jobs
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
0 UMN 2011 ERP Terapan ABAP Introduction Session # 8.
IBC233 Week 1 Updated Fall 2010 Homework? Finish Lab 1 – hand in compile listings of the two programs at the beginning of next week’s Lab Period!
Taught by Mohamed Kassim
Last Week’s Review Any Questions? CL Syntax Command-name (space) parameter.
Mastering the AS/400, Third Edition, author Jerry Fottral 1 Week 2 The System The AS/400 is a multi-user, multi-tasking system -- a system on which many.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Shell Scripting Introduction. Agenda What is Shell Scripting? Why use Shell Scripting? Writing and Running a Shell Script Basic Commands -ECHO - REM.
Data Types and RunSQLSTM. Agenda Lab 1 demo this week –Bring your lab notes! Create your own Data Types Label on Authority RunSQLstm.
AS/400 Concepts & Tools. Day 1 Introduction to the AS/400 Basic Technical Concepts Programming Environment & Tools Programming Development Manager (PDM)
Linux Operations and Administration
ICS124 Session 11 Introduction to AS/ By the end of this section, the student will be able to: Define the major difference between the AS/400 and.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
IBC233 Lecture 2 Updated Winter 2008 Agenda Test next Week – Jan 23 ISeries Architecture CL (Control Language) Library Lists Operations Navigator.
Welcome to BAC344! Business Applications using COBOL Andre Berns.
IBC233 Lecture 1.
Introduction Basics.
Week 4 presentation! This week we will cover editing and the use of the on-board tools provided, SEU and PDM.
1 “User” A person who “uses” the AS/400 You are all “Users” each with an unique Userid A Userid identifies you to the system when you signon or run a job.
W6L1ops400.ppt1 Reviews. 2 Notation types? Difference ? Job commands ?Get help with CMD??? Menu What role does the user profile play?What is your job.
Chapter Six Introduction to Shell Script Programming.
Mastering the AS/400, Third Edition, author Jerry Fottral 1 Week 12 Lesson Overview Introduce the idea of object authorization and see how library and.
IBC233 Lecture 2 Updated Summer 2006 Agenda Review What’s ODIN doing? Library List Websphere –Filters.
1 Week # 4 Introduction to PDM PDM is a workbench environment that lets programmers and system operators navigate the three levels of the AS/400’s object-based.
IBC233 Lecture 2 Updated Summer 2007 Agenda Real Estate Issues Review System Values What’s ODIN doing? Library List Websphere –Filters –Writing a CL.
IBC233 Week 2 Updated Fall 2011 Homework? Finish Lab 1 – Due Today! Send me an with your userid when you are done! Download and install software.
Today’s Agenda Object Management Library List PDM (Programming Development Manager) SEU (Source Entry Utility)
1 Week # 5 Agenda CL Programming CL Commands Job Logs Review for test # 1.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
IBM I TIPS AND TECHNIQUES A HODGE PODGE OF HELPFUL IBM I INFORMATION PROVIDED BY LAURA AND OTHER COMMUNITY MEMBERS PRESENTED BY LAURA.
Welcome to IBC233 Cindy Laurin And Russ Pangborn.
W1L2ops400.ppt1 Lecture 1 OPS400 AS/400 / iSeries / eSeries Mid-Range Operating System OS/400.
Welcome to IBC233 Cindy Laurin And Russ Pangborn.
Excel Tutorial 8 Developing an Excel Application
Development Environment
Messages, Logs, and Cleanup
How’s assignment 1 coming? Winter 2007
IBC233 Week 6.
Objects, Libraries, and Library Lists
IBC233- iSeries Business Computing Summer 2006 Welcome!
OS/400 Command Structure and Control Language
IBC233 Week 2 Updated Winter 2011
Operation System Program 4
Welcome to IBC233 Taught by Cindy Laurin.
Welcome to IBC233 Taught by Cindy Laurin.
When would you use a Qualified Name to find an object?
IBC233 Week 2 Updated Fall 2011.
Taught by Cindy Laurin And Mohamed Kassim
Welcome to IBC233 Cindy Laurin.
Welcome to BAC344! Business Applications using COBOL
IBC233 Week 5.
Presentation transcript:

Week # 2 - Agenda Types of AS/400 Objects Qualified/Unqualified Names Object Management CL Syntax Library List User Jobs Spool Files and Printing PDM (Programming Development Manager) SEU (Source Entry Utility)

Week # 2 Types of AS/400 Objects All AS/400 objects are categorized by object type. An object’s type defines the object’s purpose and how it can be used on the system. OS/400 provides more than 40 object types that encompass all applications and system resources, including programs, data, and hardware.

Week # 2 Types of AS/400 Objects (Continued) Object type Object description Attribute (subtype) *CMD Command -- *FILE File PF -SRC (Source File) PF -DTA (Physical file) LF (Logical file) DSPF (Display file) PRTF (Printer file) *JOBD Job description -- *LIB Library -- *OUTQ Output queue -- *PGM Program (executable) Source language (e.g., CBL, CLP, RPG) *QRYDFN Query definition -- *USRPRF User profile --

Week # 2 Types of AS/400 Objects (Continued) When you create an object and give it a name, the system assigns the object type, as determined by the command you used. Examples: Command CRTUSRPRF (Create User Profile) generates the object type *USRPRF Command CRTLIB (Create Library) generates the object type *LIB

Week # 2 Types of AS/400 Objects (Continued) Some CL commands work with any type of object, but there are object types that have certain CL commands that can be used only for that type. Examples: DSPOBJD (Display Object Description) command works for objects of any type DSPUSRPRF (Display User Profile) command works only for *USRPRF objects

Week # 2 Types of AS/400 Objects (Continued) When you create an object, it “goes into” a (User) library (unless the object created is, in fact, a library). This is not a physical collection of objects but a single-level directory to a group of related objects.

Week # 2 Types of AS/400 Objects (Continued) A library also provides a logical reference to objects by using address pointers. The type and authorization level of each object is associated with the library entry for that object. (Present whiteboard illustration now)

Week # 2 Requesting an Object When you request an object (by selecting a menu option or by entering a command), it usually is not necessary to specify the library name in which the object resides. You specify an object name (up to10-characters without a library reference), and the system searches the job’s current library list to locate an object matching the specified name and type appropriate for the request.

Week # 2 Requesting an Object (Continued) Example: You want to use the CALL command to execute a program. The CALL command’s only required parameter is the name of the program; so if you want to run a program named ACTCUS (to list all active accounts in a customer file), you would enter the command CALL ACTCUS

Week # 2 Requesting an Object (Continued) The only valid object type for a CALL command is *PGM, so if you include the object type in the library entry, the system can determine whether it’s type is appropriate for the requested operation without having to locate and load the actual object.

Week # 2 Qualified/Unqualified Names To run, for example, program ACTCUS in library TSTLIB1, proceed in two ways: Change the library list, or Use a qualified name for the object (the most direct because it includes a reference to a library + the 10-character object name), which would take the form – CALL libref/objname

Week # 2 Qualified/Unqualified Names (Continued) In the form libref/objname, libref is an explicit library-object name; therefore, to execute program ATCUS in library TSTLIB1, specify the following CALL command: CALL TSTLIB1/ACTCUS Here, the system searches only library TSTLIB1 for program ACTCUS.

Week # 2 Qualified/Unqualified Names (Continued) The library specified in an explicit qualified name does not need to be in your library list, but you (the requester) must be authorized not only to use that library but also to use the object within the library. The first thing the system does is determine whether you have proper authority to the library you named. When you use a simple unqualified name, the search for an object is limited to your library list. The system determined that were authorized to use the library-list libraries when your job began. (Attempting to add to your library list a library to which you are not authorized will cause an error.)

Week # 2 Qualified/Unqualified Names (Continued) If you are authorized to the library specified in an explicit qualified name but the system cannot find a matching object name of the appropriate type, or if you are not authorized to use the object, the system does not search beyond the specified library. Instead, the system returns a message such as “Object OBJNAME in library LIBNAME not found” or “Not authorized to object OBJNAME in library LIBNAME.”

Week # 2 Qualified/Unqualified Names (Continued) It might be necessary to use a qualified name if: Objects with the same name and type exist in more than one library in your library list You need an object that is not in any library in your library list To use a qualified name, you need authority adequate for the intended use, both to the object and library.

Object Management Definition > ‘An object is information stored on the iSeries system that can be operated on by using commands & programs. Some types are > Program, File, Folder & Library Main characteristics are > Name, Library, Type, Attribute, Owner Name, Creator Name & Authorization

Object Management (Continued) Comparing types > Source Physical File vs Data File (wb) Life Cycle of code from development to execution(wb) Difference between a Member and an Object (i.e. Programs & Files) (wb)

iSeries Libraries Differences between System, Product and User libraries A User library is an object that groups related objects of other types including programs and files Current Library

Library List A Library List (on the iSeries) is a ‘search path’ that specifies the Current library and a group of System, Product and User libraries that a job uses when searching for required objects (from top to bottom). (dmo) Qualified vs Unqualified jobs (wb) Job Description defines the default Library List for User profiles (Parameter in the User profile) (wb)

Library List (Continued) The QGPL and QTEMP should be standard on all Library Lists (dmo) As of OS/400 release 5.1, the maximum # of libraries allowed on the Library List has been increased to over 200 libraries. The iSeries commands relating to the maintenance of the current Library List is temporary for that sign-on session. (wb)

PDM (Programming Development Manager) Walk thru of Options 1, 2 & 3

SEU (Source Entry Utility) CODE/400 Editor Source Entry Utility Editor (Create a sample DDS)

CL Syntax Command-name (space) parameter

CL Syntax Do all commands have parameters? Why should you always press F4 following a command instead of enter?

Positional or Keyword? By Keyword, both these are allowed CRTLIB LIB(ACTLIB) TYPE(*TEST) TEXT(‘Accounting’) CRTLIB TYPE(*TEST) TEXT(‘Accounting’) LIB(ACTLIB)

Positional Allowed: Not Allowed CRTLIB ACTLIB *TEST CRTLIB *TEST ACTLIB

Menu Menus GO MAIN main menu (F16) GO MAJOR major commands menu (F4) GO VERB action menu GO SUBJECT objects menu GO CMDxxxx verb, noun, function

4 Parts of a Library List (or the 4 library list types) System (SYS) Product (PRD) Current (CUR) User (USR)

Library List Commands ADDLIBLE RMVLIBLE EDTLIBL Adds an entry to a library list to the USER portion of the library list RMVLIBLE Removes an entry from the USER portion of the library list EDTLIBL Adds/Deletes/Changes entries on the USER portion of the library list

Library List Commands CHGCURLIB CHGLIBL Changes the Current Library CHGLIBL Changes the Current Library and allows Add/Change/Delete to the USER portion of the library list. All Library List commands are listed on the CMDLIBL menu.

A Library Search

Spooled Files AS/400 objects that contain data for printing Are stored in Output Queues To print a Spooled File, the file must be moved to an Output Queue attached to a printer.

How Do Spooled Files get Created? QINTER Job Output Queue Program/ Command Spooled File Data Report Layout *FILE *FILE

CE233A01 PRT01 SPLF#1 SPLF#3 SPLF#2 SPLF#4 Change the Spooled File to OutQ PRT01 SPLF#2 SPLF#4

Work with Jobs Command To display information about your current Interactive job, simply type: WRKJOB To display information about any other job, use the Work With Job and enter the Job Name and User. Number is Optional. To display your Batch Jobs, use the Work with Submitted Jobs Commands (WRKSBMJOB)

WRKUSRJOB Shows you a list of all of the jobs that you own on the system irregardless of the subsystem Status Active = Job is currently running Outq = Job is finished Jobq = Job is waiting to process. To delete a ‘run-away’ job, take option 4