z/OS TSO/E Primer
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Creating a PDS member by copying

z/OS TSO/E Primer
SA32-0984-00

While you are editing a member of a PDS, you might want to copy part or all of it to form another new member. Copying information is especially useful when creating a program or a memo that duplicates parts of an old program or memo.

To create a new PDS member from an old PDS member, use the CREATE edit command with copy line commands.

For example, if you were editing a standard memo in data set member PREFIX.MEMO.TEXT(MAR30) and wanted to copy it and change only the date and the receiver's name, type the CREATE command on the COMMAND line followed by the name of the new member, and use a pair of cc line commands to mark the lines you want copied.
EDIT ---- PREFIX.MEMO.TEXT(MAR30) ------------------------------ COLUMNS 001 072
COMMAND ===> create dec05                                      SCROLL ===> HALF
****** ************************ TOP OF DATA ***********************************
cc0001 March 30, 1987
000002
000003 My Dear Sir:
000004   Our latest case was truly a pleasure and worth every
000005 minute of perusal.  My only regret is that our time together
000006 was abruptly brought to an end by the termination of my leave
000007 of absence.
000008   I trust you derived satisfaction from this experience albeit
000009 brief and of the type that contains no proper conclusion.
000010   If you have the desire to continue this extraordinary case
000011 at a future date, call me at once.
000012
000013 Sincerely,
000014
cc0015 Your friend
****** ************************** BOTTOM OF DATA *******************************
When you press the Enter key, you see a message in the top right-hand corner that says:
MEMBER DEC05 CREATED
You can then exit member MAR30 by pressing the END PF key (PF 3) and select the new member DEC05 to edit.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014