You are on page 1of 14

ISPF Lab Exercises 2 2023

Due Date: 2/3/2023

MF User id: ______ Name: _________________

Topic: Dataset Edit (Option 2 in primary option menu).


Allocate a physical sequential dataset with following attributes:

Name: USERID.TEST.EDIT

Record length: 40 bytes

Record format: FB

Block size: 400 bytes

Space in KB : Primary 10 Secondary 2 (tip: SMS is going to allocate more space


than this. It is ok!)

Dataset name type: BASIC (Tip: This is the default dataset type).
4.a. Edit the dataset and set the profile as follows:

Issue on the command line: PROFILE

Issue on the command line; NUM OFF

Issue on the command line: CAPS OFF (if it is already set to caps off ignore this
command)

For exercise 4.a to 4.f, DO NOT issue RES or RESET as it will suppress the display
of profile. Your work result should display the PROFILE info, when you copy
paste the result.

4.a) Key in the following text (Tip: i line command optionally followed by a
number inserts blank lines for editing. Example: i5 creates 5 blanks lines).

EARTH

MERCURY

URANUS

JUPITER

MARS

NEPTUNE

SATURN

Venus (Tip: Note the mixed case in this word)

Save the dataset. Copy and paste the content from your screen.
4.b Repeat EARTH twice
4.c Move MERCURY after URANUS; Change MERCURY to MER CURY (TIP: set
insert option to ON in the keyboard to insert any character in the text).

4.d Copy all the lines with EARTH after SATURN (TIP: use block copy command)
4.e Move NEPTUNE and SATURN together before URANUS

4.f. Insert a line after URANUS and type the following text.
NEPTUNE is the farthest planet from SUN!! (tip: It is ok If you are not able to
key in all this text in one line).

Tip: Use i line command to insert a new line.

Save the dataset but don’t exit. (Tip: Use save command)

Copy and paste your work from the dataset here.


4.g Now, Issue RES or RESET command. This should suppress the profile info from
being displayed.
Delete the line having MOON is not a planet!

Change all lines having EARTH to Earth

Cut first 3 lines and paste it towards end of the dataset. (Use cut r and paste ISPF
commands).

Save your dataset.

Copy and paste your work from the dataset here.

Topic: Move or Copy a dataset Option 3.3

5. Objective: Practice COPY/MOVE Utility

Create a PDS with name USERID.TEST.PDS

Logical record length 80; block size: leave it to default allocation

Record format FB
Space in TRACKS Primary 10 Secondary 2

Directory blocks 10

5.a Copy the members TEST1 and TEST2 from OZAGS9.FEBSES.PDS to


UESRID.TEST.PDS

Show the result of your work here.

5.b Copy the member TEST3 OZAGS9.FEBSES.PDS to a physical sequential dataset


UESRID.TEST.PS.TEST3. Allocate this physical sequential dataset with same record
length and record format as that OZAGS9.FEBSES.PDS.

Show the result of your work here.

5.c Copy the member TEST1 from OZAGS9.FEBSES.PDS to USERID.TEST.PDS with a


different member name TEST1DIF. (Copying member when a member with same
name exists in target dataset will fail. So a different member name need to be
used).

Show the result of your work here.

5.e Copy all the members from USERID.TEST.PDS to USERID.TEST.PDS.BACKUP.

Tip: Use the dynamic dataset allocation facility to allocate (i.e. create) the target
dataset. You may use option 1 or 2 as shown below:
Show the result of your work here.

6. Practices for MOVE utility

Create a PDS/E (Library) with name USERID.TEST.PDSE

Logical record length 80

Space in TRACKS Primary 10 Secondary 2

Directory blocks – No specification required.

Primary : 1 track Secondary 1 track

6.a Move members TEST1, TEST2 from USERID.TEST.PDS to USERID.TEST.PDSE.

Show the result of your work here.

6.b Move member TEST1 from USERID.TEST.PDSE to another new PS dataset


USERID.TEST.PS.LAB6B. Ensure target dataset allocation has same record format
and record length.
Tip: You can dynamically allocate the target dataset during MOVE operation OR
allocate prior to MOVE operation using dataset allocation panel (option 3.2).

Show the result of your work here.

Topic: Data set Utility Option 3.4

7. Objective: Perform various tasks in DSLIST utility panel

7.a List all datasets with your tso id as HLQ (high level qualifier or first qualifier).
Use SORT on “tracks” column and to be arranged in descending order of tracks
allocated.

(e.g. SORT VOLUME sorts the listed dataset in ascending of volume serial/label)

Copy paste the result here.

Tips: Scroll right before copy pasting the result. Just the first page result will
suffice.

7.b List all datasets that start with your userid.

Copy paste the result here.

7.c Display the member list in USERID.TEST.PDSE

Show the result of this activity here.

7.d Delete the member TEST2 in USERID.TEST.PDSE.

Show the result of this activity here.

Topic: Compare data sets Extended Option 3.13


8 Objective: Practice ISPF data set compare utility.

Compare the following two datasets.


OZAGS9.TEST.C1

OZAGS9.TEST.C2

Copy paste the result of this task. Content from the last page will suffice. Ensure
to copy the dataset name also as shown below.(I have not shown the last page
here though, but your submission should show last page only).

Topic: Search data sets for strings of data Extended Option 3.15
9 Objective: Use of ISPF data set search utility.

Do a case insensitive search on word ‘ear’ on dataset USERID.TEST.EDIT.

Tip: enter search string in “Caps” lines

Do a case sensitive search on word ‘EARTH’ on dataset USERID.TEST.EDIT.

Tip: enter search string in “Asis” lines


Do case insensitive search on full word ‘earth’

Tipe: Enter the search string followed by “word” as shown below in ‘Caps’ lines.

ear word

Show all your result here. Content from the last page will suffice. Ensure you copy
the dataset name also, as shown below.

Topic: Using RefList in Action bar NOT REQUIRED

10 Explain by practice the use of reflist. Usage of both default and user managed
reflists.

Following are explained as live demo. NOT REQUIRED


11 Explain by practice working on multiple screens. Usage of START command.

Following are explained as live demo. NOT REQUIED


12 Explain how to invoke browse utility instead of view utility.

13 Explain the effect of copying a data set of larger LRECL to that having lesser
LRECL; and vice-versa.
Topic: ISPF LOG AND LIST DATASETS NOT REQUIRED
14 Print LOG and LIST data sets, using job submission, on "Specify disposition of
LOG and LIST Data Sets" panel.

End of text

You might also like