Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
14Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
RPG400 Course Material

RPG400 Course Material

Ratings: (0)|Views: 5,355 |Likes:
Published by VISHNU400

More info:

Published by: VISHNU400 on Feb 07, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

02/07/2014

pdf

text

original

 
Introduction : ................................................................................................................................7Technology-Independent Machine Interface .......................................................................... 7Operating System OS/400 .......................................................................................................8Single-Level Storage ...............................................................................................................8Logical Partitioning (LPAR) ...................................................................................................9Objects ..................................................................................................................................... 9AS/400 Processing Environment ............................................................................................... 12What is a job? .......................................................................................................................12Job Description: ..................................................................................................................... 12Subsystem .............................................................................................................................. 12Job Queues ............................................................................................................................. 12Output Queues ....................................................................................................................... 12Type of Jobs ...........................................................................................................................12AS/400 Security ......................................................................................................................... 14Security at object level: ..........................................................................................................14Security Functions ................................................................................................................. 15Security Levels .......................................................................................................................16Application Development Tools (ADT) ....................................................................................17Program Development Manager (PDM) ................................................................................17Source Entry Utility (SEU) ....................................................................................................20Data File Utility (DFU) ..........................................................................................................20
File Types: ................................................................................................................................. 24Database Files: ........................................................................................................................... 25Access paths: ..........................................................................................................................25Physical Files: ........................................................................................................................ 26Logical Files: ......................................................................................................................... 27Types Of Logical Files ...........................................................................................................28Join Logical File .................................................................................................................... 28 Non - Join Logical File: .........................................................................................................28Field Reference Files: ................................................................................................................ 29Importance of using Field Reference Files ............................................................................ 29 Naming Conventions ................................................................................................................. 29
1
of 
148
 
 
Record Level Keywords ........................................................................................................ 33Field Level Keywords ............................................................................................................33Key Field Level Key words ...................................................................................................35Defining Logical Files ............................................................................................................... 36Logical file Keywords ...........................................................................................................37File Level Keywords ..............................................................................................................37Record Level Keywords ...................................................................................................... 38Join Logical Files ...................................................................................................................39Join Level Keywords ..................................................................................................... 40Examples of database files in DDS: ...........................................................................................41Example of a field reference file: ...........................................................................................41Example of a physical file with a new record format: ...........................................................42Example of a logical file specifying multiple formats and new keys: ...................................43Example of a logical file specifying a new record format: ....................................................43Example of a join logical file: ................................................................................................44DDM Files ................................................................................................................................. 45
RPG/400 Language Concepts .................................................................................................... 57RPG/400 Specifications ............................................................................................................. 58H CONTROL SPECIFICATION ...................................................................................... 59F FILE SPECIFICATION ................................................................................................. 59E EXTENSION SPECIFICATION .................................................................................... 59L LINE COUNTER SPECIFICATION ............................................................................. 59I INPUT SPECIFICATION .............................................................................................. 59C CALCULATION SPECIFICATION ............................................................................. 59O OUTPUT SPECIFICATION ......................................................................................... 59RPG/400 Operation Codes (OPCODES): ..................................................................................59Arithmetic Operations ............................................................................................................60ADD (Add Statement) ...................................................................................................... 60Z-ADD (Zeroise and add) ............................................................................................. 60SUB (Subtract statement) .................................................................................................. 61Z-SUB (Zeroise and subtract) ............................................................................................ 61MULT (Multiply) ..............................................................................................................61DIV (Divide) ......................................................................................................................62MVR (Move remainder) ................................................................................................... 62SQRT (Square root) .......................................................................................................... 62Move Operations: ...................................................................................................................62MOVE (Move) ..................................................................................................................62
2
of 
148
 
 
MOVEL (Move left) .......................................................................................................... 63Compare Operations .............................................................................................................. 63IFxx (If condition) .............................................................................................................64DOUxx (Do until) .............................................................................................................. 65DOWxx (Do while) ............................................................................................................65WHxx (When) ....................................................................................................................66COMP (Compare) ..............................................................................................................66Declarative Operations ...........................................................................................................67PLIST ( Parameter list) ...................................................................................................... 67PARM (Parameter) ........................................................................................................... 67KFLD (Key Field) .............................................................................................................67KLIST (Key list) ................................................................................................................ 67DEFN (Definition) ............................................................................................................. 68TAG(Tag) .......................................................................................................................... 68Initialization Operations .........................................................................................................68CLEAR (Clear) ..................................................................................................................68RESET (Reset) ...................................................................................................................69String Operations .................................................................................................................. 69CAT (Concatenate Two Character Strings) ....................................................................... 69CHECK (Check Characters) ..............................................................................................70CHEKR (Check Reverse) .................................................................................................. 70SCAN (Scan Character String) ..........................................................................................71XLATE (Translate) ............................................................................................................71SUBST (Substring) ............................................................................................................ 72Subroutine Operations ........................................................................................................... 72CASxx (Compare and execute subroutine) ........................................................................72EXSR(Execute Subroutine) ............................................................................................... 73BEGSR(Begin Subroutine) ................................................................................................73ENDSR(End Subroutine) ...................................................................................................73Indicator Operations ...............................................................................................................74SETON (Set on indicator) ..................................................................................................74SETOF (Set off indicator) ..................................................................................................74Structured Programming Operations ..................................................................................... 74ORxx (Or condition) .......................................................................................................... 74ANDxx (And condition) .................................................................................................... 75ELSE (Else) ....................................................................................................................... 75END (End) ......................................................................................................................... 75ENDyy (End Condition) .................................................................................................... 75DO (Do Iteration) ...............................................................................................................76SELEC (Select) ..................................................................................................................76OTHER (Other) ................................................................................................................ 77ITER (Iterate) ....................................................................................................................77LEAVE (Leave) ................................................................................................................. 77File Operations .....................................................................................................................78OPEN (Open File for Processing) ......................................................................................78CLOSE (Close Files) ......................................................................................................... 78
3
of 
148
 

Activity (14)

You've already reviewed this. Edit your review.
loxart liked this
alovana liked this
1 thousand reads
1 hundred reads
samk5a5 liked this
ayoubi1 liked this
Manohar Patidar liked this
Kar Thik liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->