Week 4 presentation! This week we will cover editing and the use of the on-board tools provided, SEU and PDM.

Slides:



Advertisements
Similar presentations
MICS Data Processing Workshop
Advertisements

iSeries Database Files
C Language.
Write a program step by step. Step 1: Problem definition. Given the coordinate of two points in 2-D space, compute and print their straight distance.
Euro/File Demonstration Domino Software Limited. EURO/File EURO/FILE works on a very simple principle and requires four steps to perform a run: Define.
August 29, Accessing the iSeries and Some Commands.
CL programming (with Display Files). Review Display Files Constants Input/Output fields Attributes Activating Function keys.
1 R elational D ata B ase A id Copyright © 2002 Sakman Software Corp.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
CL Programming with Database Files Updated Fall 2010.
Week # 2 - Agenda Types of AS/400 Objects Qualified/Unqualified Names
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
1 Using Editors Editors let you create and edit ASCII files UNIX normally includes two editors: vi and Emacs Vi and Emacs are screen editors: they display.
Introduction To Form Builder
1 Intro to the AS/400 Chapter 5 - CL Programming Copyright 1999 by Janson Industries.
1 Intro to the AS/400 Chapter 8 - Data File Utility Copyright 1999 by Janson Industries.
The AS/400 and the printing process
1 REVIEW Object types - ???? System security levels - ???? Current library - How is it assigned ???? How do you change it??? Qualified naming - What is.
Chapter 16 - Monitoring Hardware and Jobs
Any Questions!. Agenda Fun with Functions –how to get the system date Condition Names INDARA and SI Iteration Logical Files Positioning the file pointer.
0 UMN 2011 ERP Terapan ABAP Introduction Session # 8.
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
Keyboarding Vocabulary Key Computer Terms. Click To rapidly press and release the mouse button To rapidly press and release the mouse button.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Copyright 2007, Paradigm Publishing Inc. Word 2007 Chapter 8 BACKNEXTEND 8-1 LINKS TO OBJECTIVES Create and Merge Creating a Data Source Creating a Data.
1 OPS650 Andre Berns. Welcome! OPS650 students to the follow up of OPS400 On the AS/400 Mid-Range Operating System.
Data Types and RunSQLSTM. Agenda Lab 1 demo this week –Bring your lab notes! Create your own Data Types Label on Authority RunSQLstm.
Set path vs current schema. Set Current Schema ‘The CURRENT SCHEMA special register specifies a VARCHAR(128) value that identifies the schema name used.
Lecture 21 Lecture 2: Using TSO and ISPF Tuesday, January 20, 2009.
Compiling a C Program. Before we can begin we must open a telnet session to phobos. There are a number of ways to do this, but the easiest is to click.
CREATING A LABEL MAIL MERGE IN WORD. TERMS FIELDS RECORDS MERGE CODES.
Stacked Canvas A content canvas is a main from canvas while a stacked canvas is a secondary canvas that overlays or partially covers a content canvas.
Accessing the AS/400 DATABASE Preparation for DATA storage Create a receptacle (file) internal -- in program or direct (output / crtpf) external -- with.
IBC233 Lecture 2 Updated Winter 2008 Agenda Test next Week – Jan 23 ISeries Architecture CL (Control Language) Library Lists Operations Navigator.
DBT544. DB2/400 Advanced Features Level Check Considerations Database Constraints File Overrides Object and Record Locks Trigger Programs.
Introduction Basics.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
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.
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
Lecture 3 REVIEW of concepts security assistance profiles Library list
1.Introduction to SPSS By: MHM. Nafas At HARDY ATI For HNDT Agriculture.
1 1.Enter User Name 2.Enter Password 3.Select Language. Default is English 4.Click Login
IBC233 Lecture 2 Updated Summer 2006 Agenda Review What’s ODIN doing? Library List Websphere –Filters.
Preparation for and Accessing the AS/400 DATABASE.
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.
Chapter – 8 Software Tools.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
IBC233 Lecture 2 Updated Summer 2007 Agenda Real Estate Issues Review System Values What’s ODIN doing? Library List Websphere –Filters –Writing a CL.
1 Welcome! DBT544 students to the iSeries, DB2 Universal Database And SQL interface.
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.
Welcome to IBC233 Cindy Laurin And Russ Pangborn.
W1L2ops400.ppt1 Lecture 1 OPS400 AS/400 / iSeries / eSeries Mid-Range Operating System OS/400.
CL Programming with Database Files Updated Summer 2007.
Chapter 6 Chapter 6 - Summary.
Creating professional PDF documents from basic Spool Files, utilising report definitions, maps and dynamic use of images. (CVTSPLDBF & CVTSPLPDF)
How’s assignment 1 coming? Winter 2007
IBC233 Week 6.
Objects, Libraries, and Library Lists
Chapter 10 Backup and Recovery.
Guide To UNIX Using Linux Third Edition
OS/400 Command Structure and Control Language
Handling Spooled Files and Printing Functions
ORACLE SQL Developer & SQLPLUS Statements
The SMS Query Menu System for the iSeries
Week 4 Updated Winter 2011.
IBC233 Week 5.
CL programming (with Display Files)
Presentation transcript:

Week 4 presentation! This week we will cover editing and the use of the on-board tools provided, SEU and PDM.

2 Entering source code

3 Enter Source Code using SEU SEU can be used for entering many types of source code e.g. DDS Data Definition Specification C programs CL programs… SEU needs the source file name, the member name and the source type.

4 SEU: Source Entry Utility STRSEU or use F6 in PDM to create a new member. Remember to specify TYPE attribute when starting Take note of the function keys available in a editing session e.g. Browse/Copy function (F15) They can be used to browse a compile listing They can be used to copy from another member.Find/Change option (F14) They can be used to find occurrences of words

5 Determine the “file” usage The source attribute type: –tells SEU what type of source you are creating e.g. TXT, PF, LF, CL, etc –Determines which SYNTAX checker to use –Determines which COMPILER to use when creating the object.

6 Start Source Entry Utility STRSEU or STRPDM (WRKLIBPDM or WRKMBRPDM or WRKOBJPDM) for CL program specifications Type choices, press Enter. Source file > QCLSRC Name, *PRV Library > ABERNS Name, *LIBL, *CURLIB, *PRV Source member OP400PG01 *PRV Name, *PRV, *SELECT Source type.... > CL Name, *SAME, BAS, BASP... Text 'description' assignment # 1 program Use of F6 with (create)

7 Start Source Entry Utility STRSEU or STRPDM (WRKLIBPDM or WRKMBRPDM or WRKOBJPDM) for file specifications Type choices, press Enter. Source file > QDDSSRC Name, *PRV Library > ABERNS Name, *LIBL, *CURLIB, *PRV Source member EMPPF Name, *PRV, *SELECT Source type PF Name, *SAME, BAS, BASP... Text 'description' Employee file Use of F6 (create) with

8 Work with Members Using PDM ODIN File QCLSRC Library.... ABERNS Position to..... Type options, press Enter. 2=Edit 3=Copy 4=Delete 5=Display 6=Print 7=Rename 8=Display description 9=Save 13=Change text 14=Compile 15=Create module... Opt Member Type Text __ ARTRANS CLP testing assignment 2 __ ASSGNMA2 CLP ASSGNMT 2 OPS234 __ CLSAMPLEB CLP TEST IN CLASS ASSGNMT 1 AND 2 sample for OPS400 __ CLSAMPLEBV CLP TEST IN CLASS ASSGNMT 1 AND 2 sample for OPS400 __ CLSAMPLEX CLP TEST IN CLASS ASSGNMT 1 AND 2 __ DA400D11X CLP TEST __ OA0CHECK CLP OPS Asgn check for sections / prof __ OA0CHKALL CLP OPS324 check obj auth -- called from OA0CHECK More... Parameters or command ===> F3=Exit F4=Prompt F5=Refresh F6=Create F9=Retrieve F10=Command entry F23=More options F24=More keys Member OP400PG01 added to file ABERNS/QCLSRC. +

9 SEU Editor SEU has built in editor SEU==>________ command line Line commands: –C copies a line CC…CC copies a block –M moves a line MM..MM moves a block –I inserts, In inserts n lines, IP inserts and prompts –D deletes, Dn deletes n lines –A = after, B = before the target for move/copy

10 Columns... : 1 71 Edit ABERNS/QCLSRC SEU==>..____ TSTIA1IA2 *************** Beginning of data ************************************* /* TEST FOR IN CLASS ASSIGNMENT 1 AND 2 */ /* */ PGM PARM(&AUSRID &AUSRPFX) /* TEST FOR IN CLASS ASSIGNMENT 1 AND 2 */ DCL VAR(&AUSRID) TYPE(*CHAR) LEN(2) DCL VAR(&AUSRPFX) TYPE(*CHAR) LEN(6) F4 used DCL VAR(&COMPLID) TYPE(*CHAR) LEN(8) DCL VAR(&MSG) TYPE(*CHAR) LEN(30) STARTPGM: MONMSG MSGID(CPF0000) EXEC(GOTO PROCERR) GOTO ALLOK PROCERR: CHGVAR &MSG ('ERROR ENCOUNTERED') SNDPGMMSG &MSG TOPGMQ(*PRV *) GOTO EXIT ALLOK: CHGVAR &COMPLID (&AUSRPFX *TCAT &AUSRID) DSPUSRPRF USRPRF(&COMPLID) Source entry screen

11 STRPDM - SEU QCLSRC Declare CL Variable (DCL) Type choices, press Enter. Label CL variable name > &AUSRPFX Variable name Type > *CHAR *DEC, *CHAR, *LGL Length of variable: Length >. 6. Number Decimal positions Number Initial value

12 Internally v.s Externally declared files When created INTERNAL vs. EXTERNAL Single field (alphabetic) equal to record length Fields Defined within (internal to) programs. Record substructure (Fields) NOT globally accessible by other programs / utilities One or more fields defined in a DDS source file File structure generated externally from a source member Globally accessible by all programs and utilities

13 Compiling the Source Code CRTPF command or Option 14 in PDM takes the source code and creates the object i.e. the CL executable program or an ”externally” declared data file

14 CRTPF FILE(TESTINT) RCDLEN(100) TEXT('Internal defined file RL 100') Record Format Level (DSPFD) Format Fields Length Identifier TESTINT EA7264E38B Text : Internal defined file RL 100 Total number of formats : 1 Total number of fields : 1 Total record length : 100 CRTPF FILE(TESTEXT) SRCFILE(ABERNS/QDDSSRC) TEXT('Externally defined file’) Or Option 14 on member TESTEXT Record Format Level (DSPFD) Format Fields Length Identifier EXTORECRD C45B2B9BF558 Text : Externally defined file Total number of formats : 1 Total number of fields : 5 Total record length : 59

15 Columns... : 1 71 Edit ABERNS/QDDSSRC SEU==>.. EMPPF *************** Beginning of data ***************************** ***************************************************************** * THIS FILE CONTAINS SIMPLE EMPLOYEE * * RELATED INFORMATION FOR DEMONSTRATING * * PROGRAMMING * ***************************************************************** A R EMPPFR A EMPNO 9P LNAME16A FNAME12A PHONE 7P 0 ****************** End of data ******************************** Source entry screen

16 Columns... : 1 71 Browse ABERNS/QDDSSRC SEU==> EMPPF *************** Beginning of data ************************************* * THIS FILE CONTAINS SIMPLE EMPLOYEE * * RELATED INFORMATION FOR DEMONSTRATING * * * *********************************************** A R EMPPFR A EMPNO 9P LNAME 16A FNAME 12A PHONE 7P 0 ****************** End of data **************************************** STRPDM - SEU QDDSSRC - using - using F4 Pmt SeqNbr NameType Name Ref Len DataType Dec Use PF EMPNO 9 P 0 Functions..

17 How do you know if the compile worked??? An output file is created with each compile (the compile listing) which tells you what happened. READ it! Where is that output file?? In your output queue!!

18 Compile Errors Make sure the compile worked! The PDM user option SP shows you your spooled compile listing AND if there are errors, a joblog. If errors, return to SEU, use F15 then option 2 for spool files. The system will bring up your compile listing in the bottom half of a split window.

19 Compile Errors cont’d On the lower window command line, enter F *err (find errors) Pressing F1 with the cursor on the message will give you an explanation of the message Use F12 to return to browse window and press F16 to repeat the find errors command. Check out the warning messages also.