Last Week’s Review

  • View

  • Download

Embed Size (px)


Last Week’s Review. Any Questions?. 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 - PowerPoint PPT Presentation

Text of Last Week’s Review

  • Last Weeks ReviewAny Questions?

  • CL SyntaxCommand-name(space) parameter

  • CL SyntaxDo 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(PAYROLL) TYPE(*TEST) TEXT(Payroll Development)

    CRTLIB TYPE(*TEST) TEXT(Payroll Development) LIB(PAYROLL)

  • PositionalAllowed:CRTLIB PAYROLL *TEST


  • Syntax QuestionHow could you find the keyword syntax to Create a Physical File named EMPPF in Library IBC233LIB with a record length of 120 characters?

  • Menu QuestionsWhich menu groups together all of the Work With commands? Which menu groups together all of the commands by subject?

  • MenuMenus 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 CommandsADDLIBLEAdds an entry to a library list to the USER portion of the library listRMVLIBLERemoves an entry from the USER portion of the library list EDTLIBLAdds/Deletes/Changes entries on the USER portion of the library list

  • Library List CommandsCHGCURLIBChanges the Current LibraryCHGLIBLChanges 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.

  • Data Storage HierarchyMOHAMED - *LIBIBC233LIB - *LIBDA233x99 - *LIBObject1*PGMObject2*OUTQObject3*FILEReviews*FILEReview1Review2Review3Labanswers*FILEAnswersLab1DA233x99*OUTQReviews*FILEReview1Review2

  • ObjectsChapter 3

  • Todays LectureUse of * on the AS/400Use of ? on the AS/400AS/400 ArchitectureObject TypesStoring ObjectsManipulating Library ListsSpooled FilesWork with Jobs Commands

  • What does the * denote?

  • * (Asterix)When used before an AS/400 word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(Test Library)When used at the end of a word, indicates a generic combination of alphanumerics (wildcards). eg. WRKLIB TST*

  • Use of the ?Entering a command to see all possible values for a parameter.F4 does the same

  • What is an Object?

  • ObjectsTakes up Space on the AS400Has a DescriptionHas an Object Type

  • Object Types

    Object Type

    Object Desc











    Jobd Description






    Output Queue


    Job Queue



    Source Language

    eg. CBL, RPG CLP

  • A Library Search

    Direction of search

    Part of Library List


    Contains Object

    Object Type
























  • Object Types Certain types of commands only work with certain types of Object Types eg. DSPUSRPRF Object Type is assigned to the Object at time of creation eg. CRTLIB creates objects with a type of *LIB

  • How does the AS/400 find Objects?

  • AS/400 finds Objects Qualified Names Library/Object IBC233LIB/REVIEWSUsing Library Lists! How are Library Lists sequenced?

  • AS/400 finds Objects

    Note: Library Descriptions, Device Descriptions and User Profiles are stored in QSYS. All other Object Types can be stored anywhere.

  • What is a Spooled File?

  • Spooled FilesAS/400 objects that contain data for printingAre stored in Output QueuesTo print a Spooled File, the file must be moved to an Output Queue attached to a printer.

  • How Do Spooled Files get Created?Program/CommandDataReportLayoutJobOutput Queue*FILE*FILESpooled FileQINTER

  • DC234X99SPLF#1SPLF#2PRT01SPLF#3SPLF#4Change theSpooled Fileto OutQPRT01

  • Work with Jobs CommandTo display information about your current Interactive job, simply type: WRKJOBTo 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)

  • WRKUSRJOBShows you a list of all of the jobs that you own on the system irregardless of the subsystemStatus Active = Job is currently runningOutq = Job is finishedJobq = Job is waiting to process.To delete a run-away job, take option 4

  • Problems ?

    Enter GO SENECA on the command line. You will get a menu for information on fixing your user profile if you cannot sign on.

  • Test 1 DateIBC233 - Friday Sept. 26, 2003

  • Before Next LabReread Chapter 3. Maybe now it makes sensePrint Lab 3.

  • Before Next ClassDo the Review Questions for Chapter 3.Read Chapter 11.


View more >