100% found this document useful (1 vote)
515 views25 pages

1.AS400, Subsystems, Libraries

The document discusses the AS/400 system. It was initially called the Application System/400 and was later renamed several times. The AS/400 has an integrated database, menu interfaces, security features, and supports client-server and web applications. It uses a library system to organize objects on the system and each job run has its own library list that defines what libraries will be searched for objects.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
515 views25 pages

1.AS400, Subsystems, Libraries

The document discusses the AS/400 system. It was initially called the Application System/400 and was later renamed several times. The AS/400 has an integrated database, menu interfaces, security features, and supports client-server and web applications. It uses a library system to organize objects on the system and each job run has its own library list that defines what libraries will be searched for objects.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 25

AS/400

Overview of System , Subsystem , Jobs.


Objects.
Libraries.
Library Lists.
APPLICATION SYSTEM/400
In AS400, AS stands for "Application System.
As/400 was initially called silver lake

Developed at IBM facility at Rochester,Minnesota,USA .

It is multiuser, multitasking and very secure system and hence is used for the
industry which requires sensitive data to be stored and processed
simultaneously.

It has integrated the DB2 database management system, menu-driven


interfaces, multi-user support, security, communications, clientserver and
web-based applications..

The AS/400 (Application System/400) was first introduced by IBM on June


21st, 1988 and later renamed to as eServer iSeries in 2000, then in 2006, it
was renamed as System i . In 2008 System I got unified with System p to
become Power system..
The operating system for AS400 also got renamed with the rebranding. Initially, it
was OS/400 theni5/OS and then iBM i (Power system).
Programming languages available for the AS/400
include RPG, RPGLE,CLP,CLLE,C, C++, Pascal,Java,COBOL,SQL.
AS/400 is an application centric, it is used some specific applications like banking, Real
estates, Credit cards, Health care etc.
HARDWARE

AS/400 SOFTWARE
OS/400
IBM Licensed products
High level languages used on As/400
CL/400
RPG/400
COBOL/400
IBM LICENSED PRODECT
Application development tools(ADTS)
Structured query language(SQL/400)
Performance tools

ADVANTAGE AS/400
High processing speed (100 to 750 MI million instructions per second)
Capacity to store and handle huge amount of data.
Ability to run multiple applications simultaneously.
Support large number of users - 1 to 100 or even more.
AS/400 FEATUERS

Security
Strong data base
Economically so good
Friendly approach
Object oriented Architecture
Single -level storage
Layered Architecture
Virtual storage
Integrated Architecture
Journalling support
API support
System, Subsystems and Jobs

System Comprises all the resources of an AS400 box like processing power , main
memory etc

Sub-system Resources of the system are divided among sub-systems to distribute


work load and increase overall performance of the system
Ex- QINTER
QBATCH
QSPL

Job It is the basic unit of work on AS400 machine.


Ex Interactive Job
Batch Job
AS400 System

QINTER QBATCH sub-


system sub-system
Ex:- Ex:-
Job1 job3
Job2 job4

QSPL QINTER
sub-system sub-system
Ex:- Ex:-
Job5 job7
Job6 job8
AS400 Jobs

Job is the basic unit of work.

The types of jobs are


1.Interactive Job
2.Batch Job
3.Auto start Job
4.Server Job etc

Each job on the system is uniquely identified by the combination


of Job name + User name + Job Number( 6 digit )
Interactive Job

Starts when a user logon to the system and ends when the user
signoff from it.

Executes in a dialogue mode .


i.e user gives input through keyboard , then the system
performs some action and displays the result on a workstation.

It is not self sufficient with respect to I/O operations.

Needs a workstation display to execute.


Batch job

Starts when an user submits it using SBMJOB cl command


from within an interactive job.
Ex- SBMJOB CALL PGM1

It is self sufficient with respect to I/O operations.


i.e It takes required input from files , data-areas , performs
calculations and writes the output to files or to some other
media.

No user intervention is required.

Doesnt Need workstation display.


Job related commands

SBMJOB Submit a job in batch mode.


WRKSBMJOB Work with submitted job.
WRKACTJOB Work with active job.
WRKUSRJOB Work with user job.
WRKJOB Work with job.
AS400 Objects
In AS400 each and every thing we create results into an object.

Object occupies memory and consists a name.

All the CL commands which start with CRTXXX will create an object.
Ex: CRTUSRPRF
CRTLIB
CRTRPGPGM
CRTCLPGM
AS/400 Object Types

*LIB -- Library
*FILE -- File
*DTAARA -- Data Area
*OUTQ -- Output Queue
*PGM -- Program
*MSGQ -- Message Queue
*USRPRF -- User Profile
*DEVD -- Device Description
*JOBD -- Job Description
*JOBQ -- job Queue
*JRNRCV -- Journal Receiver
Libraries.
Every object in AS400 should be placed in a library.

There are 2 types of libraries.


Production.
Test.

Within a library all the objects of one type should have unique names.
Ex: Pgm1 , Pgm2 , File1 , File2 are in LibA.

Two Different libraries can have objects with same name and same type. In this case
the library name qualifies the objects.
Ex: Pgm1 , Pgm2 , File1 , File2 are in LibB.
IBM -SUPPLIED LIBRARIES

QSYS - Contains IBM-supplied programs and data owned by Security Officer.


QGPL - Contains IBM-supplied objects for general use.
QTEMP- Created automatically for every job. This library holds temporary objects such
as work files.
QSRV - Service Engineer library.
QRPG - RPG Library contains RPG compiler and objects required to enter, edit and
compile RPG programs.
QCBL - COBOL Library. This library contains the COBOL compiler and the objects
required to enter, edit and compile COBOL programs.
QIDU - Interactive database Utilities Library.
USER-DEFINED LIBRARIES
These are the libraries created by the user.

Library name may be any user-defined alpha-numeric name of not more than 10
characters. Library name should not begin with a number and should not have any
blanks embedded.
Library/Object Structure

QSYS

Other Library Objects


User Profiles Configuration
LIB A LIB B

PGM 1 FILE 1 ETC. PGM 1 FILE 1 ETC.

Member 1 Member A
Member B
Library Related Commands

CRTLIB Create new library object.

DSPLIB Display contents of a library.

CLRLIB Delete all objects in a library

DLTLIB Delete a library object.


Library List

Is a list of libraries which will be searched for objects as and


when they are required during a job.

Each and every job on the system will have their own library list
which can be modified independent of others.

It is similar to path on a pc or class-path for java environment.


Parts of Library List

Library list consists the following 4 parts.

1. System Part (up to 15)


Ex QSYS,QSYS2,QHLPSYS,QUSRSYS

2. Product Part (None to 2)


Ex QRPG

3. Current Library (Only One)

4. User Library List (Unto 25)


DSPLIBL Display Library List
QSYS
QSYS2
QHLPSYS System Part
QUSRSYS

QRPG
Product Part
PDAYYALA Current Library

PDAYYALA
QGPL User Part
QTEMP
QGPL and QTEMP
QGPL and QTEMP are the 2 libraries which are automatically added to each jobs
library list.

QGPL - General Purpose Library


Is the default Current directory.
Ex - Spool Queues, Source Files Etc
QTEMP - Automatically Created For each job on the System.
It is unique for each job.
Lasts only for the duration of the Job.
Useful place for storing Temporary Objects.
Commands Related to Library List

DSPLIBL Display library list.


EDTLIBL Edit library list.
ADDLIBLE Add library list entry.
RMVLIBLE Remove library list entry.
CHGLIBL Change library list.
CHGCURLIB Change Current Library.
END

You might also like