Академический Документы
Профессиональный Документы
Культура Документы
Lecture 2
Lecture Overview
Primary options Session settings Data set utility (allocating data sets) View data sets Edit data sets Line commands Search and other useful commands
Lecture 2 2
ISPF editor
TSO overview
Acronym for Time Sharing Option/Extensions (TSO/E) Allows users to create an interactive session with z/OS Provides a single-user logon capability and a basic command prompt interface to z/OS Most users work with TSO through its menudriven interface, Interactive System Productivity Facility (ISPF)
Usually, ISPF provides the interface for TSO However, TSO includes a limited set of basic commands independent of ISPF and other programs
Using TSO in this way is called using TSO in its native mode
TIP: you can invoke native TSO commands from within ISPF
When you logon to TSO, the z/OS system responds by displaying the READY prompt, and waits for input (similar to a DOS prompt)
To access ISPF under TSO, the user enters a command (ISPF) from the READY prompt to display the ISPF Primary Option Menu. You can access online help from any of the ISPF panels (press the PF1 key) ISPF includes a text editor and browser, and functions for locating files and performing other utility functions
Settings
/ Cursor at .. _ ... _ ... _ ...
View
Proj ____ Group ____ Type ____ Other Dsn__
Edit
Proj ____ Group ____ Type ____ Other Dsn__
Utilities
1 Dataset 2 Library 3 Copy/Move 4 DS List
Dialog Test
1 ...... 2 ...... 3 ...... 4 ......
Dataset
Type ____
Keyboard mapping:
Function Enter Exit, end, or return Help PA1 or Attention PA2 Cursor movement Clear Page up Page down Scroll left Scroll right Reset locked keyboard Key Ctrl (right side) PF3 PF1 Alt-Ins or Esc Alt-Home Tab or Enter Pause PF7 PF8 PF10 PF11 Ctrl (left side)
Option 0
11
Disk Terminology
The disks within a disk drive
Spindle
Disks
12
Disk Terminology
The tracks and sectors on one recording surface
One sector of a track
13
A disk drive contains a stack of metal platters (or disks) that are coated with a metal oxide. Data is recorded on one or both sides of each disk in concentric circles called tracks. Each track is divided into sectors, and each sector has a unique disk address. When the disk drive reads or writes data, it reads or writes one or more complete sectors. When the disk drive is in operation, the disks rotate around the spindle at high speeds.
14
Option 3
UTILITIES
Option 3.2
16
Option 3.2
17
To allocate a new sequential data set (from 3.2), enter A in the command area, enter the data set name, and press the Ctrl key to display the Allocate New Data Set panel In the Allocate New Data Set panel, specify 0 for the directory blocks, and leave the data set name type blank Tip: to save time, first view the settings of an existing data set, and then allocate a new data set which will reuse the settings To enter the data for a sequential file, you can use the ISPF editor When you open a sequential file for the first time, be sure to enter the NUM OFF primary command so line numbers arent added to the file
18
To allocate a new PDS (from 3.2) data set, enter A in the command area, enter the data set name, and press the Ctrl key to display the Allocate New Data Set panel In the Allocate New Data Set panel, specify a value > 0 for the directory blocks, and enter PDS in the Data Set Name Type field
Tip: to save time, first view the settings of an existing data set, and then allocate a new data set which will reuse the settings
To enter the data for a sequential file, you can use the ISPF editor
19
Volume serial- A six character name of a disk or tape volume, such as TEST01 Device type- A model or type of disk device, such as 3390 Organization - The method of processing a data set, such as sequential Record format- The data is stored in chunks called records, of either fixed or variable length Record length- The length (number of characters) in each record Block size- If records are joined together to save space, this specifies the length of the block in characters Extent- An allocation of space to hold the data. When the primary extent is filled, the operating system will automatically allocate more extents, called secondaries Space- Disk space is allocated in units called blocks, tracks, or cylinders
Option 1
VIEW
Option 1Browse
VIEW
Option 1 Browse
VIEW
COLS
Option 1 Primary
VIEW Functions
Lecture 2
24
Lecture 2
25
VIEW
Member selection
Lecture 2
26
Option 1 Browse
VIEW
Current Position
Line Numbers
Lecture 2 27
Option 2
Edit
To display the Edit Entry panel, select option 2 (Edit) from the Primary Option Menu To edit a member of a partitioned data set, enter the names of the data set and member and press Enter If the member you specify already exists, its contents are displayed in the edit data display If the member doesnt exist, the edit data display is blank. ISPF uses the data set type to determine the edit profile it uses The edit profile contains settings such as the number of columns in the editing area, the type of numbering thats used, the tab settings, and whether recovery mode is on or off
28
Option 2
Edit
29
Edit
Heading Area
Screen Window
30
The first line of the heading area identifies the file being edited and the leftmost and rightmost columns where editing is allowed. The second line of the heading area contains a command area where you can enter primary commands and a scroll field where you can indicate the scroll amount. In the line command area, you can enter line commands that affect specific lines. The screen window is where the data for the member youre editing is displayed. How to start a new member from an existing one Enter the COPY command in the command area and press Enter. Then, identify the existing member in the panel thats displayed.
31
PAGE
HALF
CSR
MAX
Numeric value
Description
D R C M A B ( < ) > X
Insert lines Delete lines Repeat lines Copy lines Move lines After line Before line Shift right columns Shift right data Shift left columns Shift left data Exclude lines
D/Dn/DDDelete this line, n lines beginning with this line, or the block of lines beginning and ending with DD R/Rn/RR/RRnRepeat this line or the block of lines beginning and ending with RR 1 or n times C/Cn/CCCopy this line 1 or n times, or copy the block of lines beginning and ending with CC M/Mn/MMMove this line 1 or n times, or move the block of lines beginning and ending with MM A/AnCopy or move lines 1 or n times after this line B/BnCopy or move lines 1 or n times before this line.
34
Screen 2
Screen 2
36
Screen 2
37
COPY member-name
PROFILE RECOVERY [ON|OFF] UNDO SAVE END (PF3/15) RETURN (PF4/16) CANCEL TOP BOTTOM
Lecture 2
39
Lecture 2
40
Lecture 2
41
Lecture 2
42
Lecture 2
43
Lecture 2
44