ISPF Editor
Part Two - Challenge #04

Background:

ISPF Editor is feature/function rich

This challenge will continue to explore ISPF functionality and navigation techniques.

Familiarity with ISPF Editor is required to complete challenge #04 and many of the future challenges

While in ISPF Edit session, enter help or press function key 1, F1, to display online ISPF Editor tutorial help.

Highly recommended -
The contest instruction web site has an ISPF Editor Command Summary under the References drop down.
ISPF Editor Command Summary

Professionals continue to learn ISPF editor tricks and techniques for many years after their first exposure to ISPF editor.

For a few quick hints with getting around in ISPF, check out this video Ray Mullins made just for you:

Become proficient with ISPF editor with repeated use and exploration.


Useful information about ISPF that will help you complete challenge 4 and future challenges

As a reminder, there is a short video available to explain ISPF Editor.

Click on the following URL, then select Lecture 7 video which is less than 8 minutes.
z/OS Introduction

Note: If "Start Chat"appears, decline.
Chat is for clients considering purchase of more IBM Z technology features.


Challenge:


Use ISPF editor to change text image
From ISPF Primary Option Menu enter dslist seq.data to jump to data set list utility panel

Tab to the left of your SEQ.DATA data set name and enter e to the left of the data set name to edit the sequential data set.

An EDIT Entry Panel may appear - enter to proceed

Observe the upper left EDIT indicating edit mode.
Enter pfshow off on the ISPF editor in the Command input field.
pfshow off removes the program function key legend at the bottom exposing more text lines.

Enter reset on the ISPF editor in the Command input field.
reset removes the ==MSG> lines providing more room for text on the display

Observe line 7 below
  • Line 7 is a series of ISPF editor change c commands.
    Semi-colon ; is used as a command separator to execute 3 changes commands.
    --- It would have been possible to enter 1 change command at a time.
  • Line 7 change commands were used to obfuscate the text image.
  • You will use the reverse to show the original text image.

Enter the following ISPF primary commands:
  • c x'00' '(o)(o)' all;c x'01' | all
  • c x'02' / all; c x'03' \ all
Remember - copy and paste is available to avoid typing mistakes

Explanation of the 3 ISPF editor primary commands follows:
  • c x'00' '(o)(o)' all
      change c hexadecimal value 00 x'00' to text string (o)(o) all occurrences
      x'00' is an unprintable character, therefore unseen by you.
  • c x'01' | all
      change c hexadecimal value 01 x'01' to text string | all occurrences
      x'01' is an unprintable character, therefore unseen by you.
  • c x'02' / all
      change c hexadecimal value 02 x'02' to text string / all occurrences
      x'02' is an unprintable character, therefore unseen by you.
  • c x'03' \ all
      change c hexadecimal value 03 x'03' to text string \ all occurrences
      x'03' is an unprintable character, therefore unseen by you.


The result of the 3 ISPF primary change all commands is the original text image.

  1. Tab to line 000002 and overtype 000002 with dd (do not enter yet).
  2. Tab to line 000009 and overtype 000009 with dd (now enter).
  3. You are using ISPF editor line command area to delete a block of lines.
    -- from the first dd to the following dd
    ---- a single d would delete a single line
    ---- so now you can see how ISPF line commands work

Observe the block of lines were deleted exposing more of text image

  1. Type (without enter) rep p2.output(#04) in the ISPF editor primary command input area.
  2. Tab to line 000001 and overtype 000001 with cc (do not enter yet).
  3. Tab to last line and overtype last line number with cc (now enter).
      You many need to F8 (to scoll forward)
      or enter ISPF editor primary command down for last line to be visible.
  4. You are using ISPF editor line command area to copy a block of lines
    -- from the first cc to the following cc
    ---- A single c would copy a single line

An EDIT - Confirm Replace panel may appear warning truncation will occur.
  Truncation is expected.
  Enter to proceed.

Enter end;return to save the changes and return to ISPF Primary Option Menu.

Enter dslist p2.output to jump to the Data Set List panel.

Tab to the left of your P2.OUTPUT data set name
and enter b to browse the partitioned data set.

Partitioned data set member names appear.
Tab to left of #04 member name.
Enter s to select #04 member name.

Visible is the text you previously created from your changed SEQ.DATA data set name.
Enter end;return to jump back to ISPF Primary Option Menu.

Review of what you learned about the ISPF editor (other than the Simpson family members):

What you learned in challenge 4 about the ISPF editor is important for completion of future challenges.

  • Line commands are typed over top of line numbers to the far left of the line text.
  • Primary commands are typed in the edit session Command ===> field.
  • Line commands can be executed against a single line or a block of lines.
  • A combination of line and primary commands can be typed into the edit session,
     then the line and primary commands are executed upon depressing enter.
  • While in ISPF edit session, F1 (function key 1) displays the ISPF editor help tutorial.
  • Remember you have access to an ISPF editor summary reference -
    ISPF Editor Command Summary

Congratulations! You are done with challenge #04 and you ready for the next challenge.

Next: Challenge #05