Getting Started
Part Two - Challenge #01

Background:

Congratulations on your decision to participate in the Part 2 journey.

A reminder about contest IDs:
All references to Z99999 are examples. Substitute your assigned ID in all cases.

The purpose of this challenge is for you to learn how to use the the ISPF Editor. Explanation of how to use the ISPF Editor is followed by screen shots at the bottom of these instructions.

Challenge:

From the ISPF Primary Option Menu, enter the following:

tso p2

Messages about data set allocations will be displayed followed by a MAXCC=0000 notification that members were copied into the new Part 2 data sets

If you need to start over all of Part 2 or any Part 2 challenge at any time, then enter tso p2over

Enter =3.4 to jump to the ISPF Data Set List panel.
Type your ID in the Dsname Level field.
Press Enter and more data set names appear in the list that previously contained only Part 1 data set names.
New data set names include JCL, SOURCE, STATUS, P2.OUTPUT, and LOAD.

Observe a data set named, Z99999.P2.OUTPUT in the list of data set names.
  Z99999.P2.OUTPUT will eventually contain all Part 2 challenge output.
  Z99999.P2.OUTPUT will frequently be referred to as P2.OUTPUT in the instructions.

Enter e to the left of P2.OUTPUT.

Enter select #01 on the command line to create and edit member #01.

Note:
Reference to the word "Type" means do NOT press "Enter" after typing text.
Reference to the word "Enter" means press "Enter" after typing text.

Think of a single word or brief phrase that comes to your mind when someone says "mainframe".

Tab to the first blank line, "type" the word or phrase, then "enter".

Observe a line number appeared on the left and the remaining blank lines disappeared.

Place the cursor directly on the line number.
  On the left side of the line number containing your word or phrase, type 'a' to specify the preferred placement as after this line.

Place the cursor in the editor primary command input area at the top.
  Enter copy 'zos.public.country'


Success from the above action is a list of countries copied into #01 after the line with your word or phrase.

The next edit action is to keep only the line with your country.
  Therefore, delete all of the lines except for the line with your country.
  Please be sure to leave the first line with your selected word or phrase.
#01 will only have 2 lines when complete.

How do you complete this action? - Use 1 of the following 3, or a combination of the 3:

  1. A single line can be deleted by entering d on the line number to be deleted.
  2. A consecutive block of lines can be deleted by typing dd on first line number to be deleted, then type and enter dd on last line number to be deleted
  3. A consecutive number of lines can be deleted by entering d on the first line number to be deleted immediately followed by number of lines to be deleted.
Example Screen Shots:

The following is a series of example screens executing the above instructions
where the contestant is from the United States.

Please be sure to accurately include your country because this information is
needed by the contest judges to select country winners.

Future challenges will rarely include screen shot examples. The instructions will
assume you are familiar with navigating ISPF panels and ISPF Editor.

Observe the a on the first line number to copy after the first line.

Observe the f to find your country.
Observe the dd on the first line that is NOT needed

Observe the dd on the line just above the found country.
The second dd completes the block of lines to be deleted.
Observe the d99 on line just below the found country to delete the remaining 99 lines (which is all the remaining lines.

Enter top

Only the two lines you selected should be visible.

F3 to save #01 changes, end, and return to P2.OUTPUT PDS directory

F3 returns to ISPF data set list panel.

First challenge of Part 2 is complete.
  That was easy and the next several challenges are intended to be
  both easy and educational in preparation for more advanced challenges
  that assume knowledge gained in these early challenges.

While many interact indirectly and unknowingly with mainframes each day,
few can say they interacted directly and knowingly with a mainframe today.
You can!

Next: Challenge #02

Need to start over?

Two options are available:
  1. While in P2.OUTPUT PDS directory, enter d to the left of #01 to delete the member
  2. While in edit on #01, enter d999 on the first line number to delete 999 lines,
    then enter i on ****** to the left of the line that reads "Top of Data" to insert a single line.