Date: Mon, 2 Oct 2006 13:59:41 -0400
Reply-To: "F. J. Kelley" <jkelley@UGA.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "F. J. Kelley" <jkelley@UGA.EDU>
Subject: Re: Mainframe SAS - copying and pasting code
Content-Type: text/plain; charset=us-ascii
i'm not on the mf very much anymore, but back in the old days, was one of the folks who answered (weird) questions about it. We had a handout for ISPF; dated now and dependant upon terms often specific to a given site. That said:
http://www.eits.uga.edu/mvs/tcpip/tso.html
---- Original message ----
>Date: Mon, 2 Oct 2006 13:38:37 -0400
>From: Nat Wooding <Nathaniel_Wooding@DOM.COM>
>Subject: Re: Mainframe SAS - copying and pasting code
>To: SAS-L@LISTSERV.UGA.EDU
>
>Joe
>
>I have been out of town for a few days and am just now catching up on my
>mail and have some adenda to what has already been said.
>
>I am using ISPF and access it from a pc suing Chameleon Hostlink and aware
>of two ways to do what you want.
>
>1) I do have limited highlighting with copying and pasting available. If I
>highlight a couple lines, I can go to another member of a pdf and the text
>will be pasted (using the keyboard command Cntl V) where the cursor is
>placed. This is not very slick, though, since the first line goes where I
>want it but any subsequent lines are pasted starting in the line numbers on
>the left hand side of the screen. At least, this does work nicely for
>copying and pasting single lines. Do note that I can copy a block of code
>from a mainframe file and paste it without problems in a pc file.
>
>2) Use line commands:
>
>In your example, to copy the four lines, I would put the letters "cc" at
>the start and end of the block as below
>
>cc0001 x=y;
>000002 y=x;
>000003 f=d;
>cc0004 d=2;
>
>on the command line I would type "create abcd" where "abcd" would be the
>name of a new member of the PDS that I was using. Upon hitting enter, the
>lines would be copied. Then, I would go to the target file and put an "A"
>(after) or "B" (before) one of the lines adjacent to where I wanted the
>lines to go and on the command line type "Copy ABCD". This is klunky but it
>works.
>
>Do note that you have some really neat features available in ISPF that are
>not available in many pc editors. For example, you can exclude lines so
>that the contents are still there but they are not visible. You can exclude
>all lines by typeing X ALL on the command line or you can put XX....XX at
>the begging and end of a group of lines that you want excluded. This is
>useful in a couple ways. If I am searching for some bit of code, I will
>often exclude all and then type (on the command line) Find ' my string
>goes here' all and all instances of the code will appear. You can also
>use change commands with the modifier X or NX. You may want to make
>multiple changes in only part of a member and in this case, exclude the
>part that is not to be changed and then (command line) type
>
>C 'target' 'new line' NX ALL
>
>and all of the visible lines will be changed.
>
>There is a help system available which can be reached from the command line
>by typing HELP and hitting enter.
>
>I hope that you will learn to find your editor useful since it really is
>quite powerful even if it is not GUI.
>
>By the way, someone mentioned using a specific PF key to do something. I
>forget what the command was but that key is mapped to a different command
>and, as I recall, his mapping is not the standard one.
>
>You can see you pf mapping by typing KEYS on the command line.
>
>Nat Wooding
>
>
>
> Joe Clarke
> <joe_clarke@STAND
> ARDLIFE.COM> To
> Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU
> Discussion" cc
> <SAS-L@LISTSERV.U
> GA.EDU> Subject
> Mainframe SAS - copying and pasting
> code
> 09/29/2006 10:40
> AM
>
>
> Please respond to
> joe_clarke@STANDA
> RDLIFE.COM
>
>
>
>
>
>
>Hi,
>
>I recently started using Mainframe SAS (I've used PC SAS up till now) and
>I'm trying to copy and paste code between two programs, and am having
>difficulty. The commands are not intuitive. If I have a program Test1 as
>follows:
>
>000001 x=y;
>000002 y=x;
>000003 f=d;
>000004 d=2;
>
>and I want to copy lines 2&3 from here into the middle of another program,
>how do I do that? Is there a source on the web for these commands? Aggh!
>
>Thanks,
>
>Joe
>
>This e-mail is confidential, if you are not the intended recipient, do not
>retain/disclose it and please return it to us. We virus scan and monitor
>all e-mails but are not responsible for any damage caused by a
>virus/alteration of our e-mail by a third party after sending.
>
>For more information on Standard Life group, visit our website
>http://www.standardlife.com/
>
>Standard Life plc (SC286832), Standard Life Assurance Limited* (SC286833)
>and Standard Life Employee Services Limited (SC271355) are all registered
>in Scotland at Standard Life House, 30 Lothian Road, Edinburgh EH1 2DH.
>*Authorised and regulated by the Financial Services Authority. 0131 225
>2552. Calls may be recorded/monitored. Standard Life group includes
>Standard Life plc and its subsidiaries.
>
>
>
>-----------------------------------------
>CONFIDENTIALITY NOTICE: This electronic message contains
>information which may be legally confidential and/or privileged and
>does not in any case represent a firm ENERGY COMMODITY bid or offer
>relating thereto which binds the sender without an additional
>express written confirmation to that effect. The information is
>intended solely for the individual or entity named above and access
>by anyone else is unauthorized. If you are not the intended
>recipient, any disclosure, copying, distribution, or use of the
>contents of this information is prohibited and may be unlawful. If
>you have received this electronic transmission in error, please
>reply immediately to the sender that you have received the message
>in error, and delete it. Thank you.
|