ISPF –
Interactive System Product Facility
1. ISPF
is an IBM function through which we can communicate with the mainframe server
environment
2. ISPF
is a pre-defined component of IBM and also it contains some options along with
function and description
3. In
ISPF whenever an application programmer want to store some data in mainframe
server it is possible with the help of a “data set”
4. Data
set is a collection of records or data
5. Data
set is a general file which stores some data into it
Classification
of Data Sets:
Data
Sets mainly classified into two types. They are…..
1. Permanent Data Set
2. Temporary Data Set
1.
Permanent Data Set:
a.
All Permanent Data Sets contain a catalog
entry.
b.
Catalog means storing the data set name
permanently in the volume of DASD
c.
The maximum length of Permanent Data Set is 44 characters, for
every 8 characters there will be a qualifier and maximum 5 qualifiers are
possible
d.
Qualifier means Dot (.)
e.
1st Qualifier must be the
user id
f.
The possible values are a-z, 0-9
g.
Each and every qualifier must start
with alphabet only special characters are not allowed in name field
h.
Permanent data sets are classified into
two types. They are….
i.
VSAM
ii.
NON-VSAM
i.
NON-VSAM data sets classified into two types. They are…..
i.
PS - Physical Sequential
ii.
PDS - Partitioned Data Set
j.
PS file is a single file which stores no of records into it
whereas PDS is like a directory which store no of members into it
k.
All members are equal to PS files because in members also we
can store no of records only
l.
In PDS to limit no of members 6n-1 where n=directory block
m. Directory block is
required only for PDS file
EX: 1. N=1 then no of members=5
1.
N=4 then no of members=23
2.
N=10 then no of members=59
3.
N=14 then no of members=83
n.
For a PS file ‘n’ value must be ‘0’
o.
VSAM data sets are also called as “clusters”
p.
VSAM having 4 clusters. They are……
i.
KSDS
ii.
ESDS
iii.
RRDS
iv.
LDS
Temporary Data Sets:
a.
Temporary data sets always starts with the prefix &&
b.
Maximum name length is 7 to 8 characters and doesn’t contain
a catalog entry
c.
Temporary data sets are not physically existed because they
are only for temporary purpose

Creation of Data Set in ISPF:
To create a new data set in ISPF
select option ‘3’ i.e. ‘Utilities’ from ISPF primary options menu
Select option ‘2’ i.e. ‘data
set’ from data set panel
In data set panel provide the
required information to create a new data set as follows……
Command: a .
A : Allocate new data set C
: Catalog
R : Rename U
: Uncatalog
Blank : V :
VSAM
Project : User ID
Group : User
Defined
Type : User
Defined
Along with the data set name we
have to allocate some attribute as follows…..
A. Volume:
Specifies
name of the volume serial in the DASD
B. Space Units:
Specifies
the memory units. The possible space units are……
i.
Byte
ii.
Kilo Byte
iii.
Mega Byte
iv.
Blocks
v.
Tracks
vi.
Cylinder
|
For normal files the required
space units are ‘Tracks’
C. Primary Quantity:
It
specifies the primary memory for the data set it will be utilized by the system
1st
D. Secondary Quantity:
It
is an additional memory for the data set also called as secondary memory or
extended storage
E. Directory Block:
It
is required only for the PDS file the minimum value for the directory block is
‘1’. For sequential file it should be ‘0’.
F. Record Format:
a.
It specifies the type of a record and also specifies the
structure of a file. In general the required record format is ‘Fixed Blocks’
for fixed length records it should be 24*80 resolution
b.
We also have various record formats as follows
i.
F - Fixed
ii.
FB - Fixed Block
iii.
V - Variable
iv.
VB - Variable Block
v.
U - Undefined
G. Record Length:
Specifies
a length of a record in the file. In general the record length is 80 bytes
H. Block Size:
It
must be multiples of record length only. Based on record length we have to
assign a value for the block size
NOTE:
1.
In ISPF once data set is allocated we cant alter the
properties.
2.
In ISPF duplication of data set names is not possible
3.
The organization of PS file is PS
4.
The organization of PDS file is PO
ISPF COMMANDS
1.
E -
Editing of Data Sets or Members
2.
I -
Insert
3.
R -
Repeating a line (Immediate Repeat)
4.
C -
Copying single line
5.
CC -
Copying block of lines
6.
CN -
Copying ‘n’ no of lines
7.
M -
Moving single line
8.
MM -
Moving block of lines
9.
MN -
Moving ‘n’ no of lines
10.
D -
Deleting single line
11.
DD -
Deleting block of lines
12.
DN -
Deleting ‘n’ no of lines
13.
COL&COLS -
Used to display the column numbers
14.
TABS -
Used to allocate one line space between the records
15.
TE(TEXT EDIT) - Used
to insert the block of lines between the records
16.
TS(TEXT SPLIT) - Used
to divide one line into different lines
17.
TF(TEXT FLOW) -
Used to combine number of lines into one line
18.
X(EXCLUDE) - Used
to hide the lines
19.
S(SHOW) - Used to see EXCLUDED lines
20.
PROFILE -
Used to view a profile information of data set
21.
CAPS -
If CAPS is ON irrespective of input data it converts into upper case
22.
RECOVERY - IF
Recovery is ON we can ‘Undo’ the deleted records
We
cant recover the deleted records by using undo even though the recovery is ON when you save
23.
HILITE -
Used to highlight the requested script
EX: JCL,
COBOL
Syntax:
HI JCL
24.
F -
Used to find matching character or word sequentially
Syntax
: F character or word
25.
&F -
Used to find matching character or word dynamically
Syntax : &F character or word
26.
UC -
Upper Case
27.
LC -
Lower Case
28.
PFSHOW -
Profile Show(Used to view the profile keys)
29.
KEYS -
Used to change the profile keys description
30.
CUT -
Used to copy the lines from one file to another file
31.
PASTE -
Used to paste the data copied by CUT
32.
S -
Used to create members in a PDS(Used inside PDS)
Syntax: S Name
33.
Z -
Used to compress PDS files
34.
D(IN 3.4) -
Deleting the data set
35.
R(IN 3.4) -
Renaming the data set
36.
C(IN 3.4) -
Copying the data set
37.
U(IN 3.4) -
Uncataloging the data set
38.
I(IN 3.4) -
Information of the data set
39.
V(IN 3.4) -
Viewing the data set
40.
B(IN 3.4) -
Browse
41.
E(IN 3.4) -
Editing the data set
42.
C -
Changing matching character or line only once(on
command line)
Syntax:
C old-name new-name
43.
&C -
Used to change character or word dynamically(on
Command line)
Syntax: &C old-name
new-name
44.
C ALL -
Used to Change all Matching characters at once
Syntax: C
ALL old-name new-name
NOTE:
1.
‘Copy’ means duplication of data
2.
‘Move’ means replacing the data
A - After
B - Before
NOTE:
For
“copy” and “move” operations ‘After’ and ‘Before’ are mandatory
No comments:
Post a Comment