Write and run SAS programs in your web browser

Copy-and-Paste

Reply
Contributor
Posts: 23

Copy-and-Paste

Does anyone could tell me how to copy and paste a paragraph that concludes characters and numbers into code area? This is the requirements: Include just the log notes from the DATA step execution that results in 8618 observations in the HW Report by using copy-paste. 

How could I copy this into my code area and let it show in results?

Super User
Super User
Posts: 7,970

Re: Copy-and-Paste

Like any other copy + paste:
Highlight text, press cntrl + c

Goto to where to paste and cntrl + p

 

Describe your problem clearly with examples if you want further guidance.

Contributor
Posts: 23

Re: Copy-and-Paste

I mean I have to copy some of my log, which are characters and numbers into my code area, and then show this log into my output. Like show a paragraph in a output

Super User
Super User
Posts: 7,970

Re: Copy-and-Paste

Yes, so highlight in your log, cntrl + c, goto your program window and select where, press cntrl + p.

Contributor
Posts: 23

Re: Copy-and-Paste

I am using the Mac, so ctrl+p lets me open a new webpage that includes codes, but cannot run.

Super User
Super User
Posts: 7,970

Re: Copy-and-Paste

Yes, sorry, cntrl+v to paste:

http://osxdaily.com/how-copy-paste-mac/

Contributor
Posts: 23

Re: Copy-and-Paste

It shows this:

NOTE: Character values have been converted to numeric values at the places given by: (Line)Smiley SadColumn).

                  _________

                  180

ERROR 180-322: Statement is not valid or it is used out of proper order.

 

title2"Part 3c";
title3"Invalid Data Errors";
 NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).
       156:12   157:17   158:17   159:17   160:17   161:17   162:17   
 NOTE: The infile "/home/ydu180/hw3/OlympicAthletes.dat" is:
       Filename=/home/ydu180/hw3/OlympicAthletes.dat,
       Owner Name=ydu180,Group Name=oda,
       Access Permission=-rw-r--r--,
       Last Modified=28Jun2017:20:52:29,
       File Size (bytes)=526175
 
 NOTE: Invalid data for CCD in line 2151 37-45.
 RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                      
 
 2151CHAR  Mariela Antoniska.29.Argentina.2004.29/8/2004.Hockey.0.0.1.1 60
     ZONE  467666624676667660330476667666033330332323333046666703030303
     NUMR  D1295C101E4FE93B192991275E49E192004929F8F200498F3B5990909191
 Athlete=Mariela Antoniska Country=Argentina Sport=Hockey Host=Athens Age=29 Year=2004 CCD=. GM=0 SM=0 BM=1 TM=1 _ERROR_=1 _N_=2150
 NOTE: Invalid data for Year in line 3209 25-28.
 
 3209CHAR  Luis Scola.28.Argentina.2oo8.8/24/2008.Basketball.0.0.1.1 57
     ZONE  476725666603304766676660366303233233330467667666603030303
     NUMR  C593033FC192891275E49E192FF898F24F20089213B5421CC90909191
 Athlete=Luis Scola Country=Argentina Sport=Basketball Host=  Age=28 Year=. CCD=08/24/2008 GM=0 SM=0 BM=1 TM=1 _ERROR_=1 _N_=3208
 NOTE: Invalid data for Year in line 3584 30-33.
 
 3584CHAR  Bakhtiyar Akhmedov.21.Russia.2oo8.8/24/2008.Wrestling.0.1.0.1 61
     ZONE  4666767672466666670330577766036630323323333057677666603030303
     NUMR  21B84991201B8D54F6921925339192FF898F24F2008972534C9E790919091
 Athlete=Bakhtiyar Akhmedov Country=Russia Sport=Wrestling Host=  Age=21 Year=. CCD=08/24/2008 GM=0 SM=1 BM=0 TM=1 _ERROR_=1 _N_=3583
 NOTE: Invalid data for Year in line 7963 39-42.
 
 7963CHAR  DeLisha Milton-Jones.33.United States.2oo8.8/24/2008.Basketball.1.0.0.1 71
     ZONE  46467662466766246667033056676625767670366303233233330467667666603030303
     NUMR  45C93810D9C4FEDAFE5393395E9454034145392FF898F24F20089213B5421CC91909091
 Athlete=DeLisha Milton-Jones Country=United States Sport=Basketball Host=  Age=33 Year=. CCD=08/24/2008 GM=1 SM=0 BM=0 TM=1
 _ERROR_=1 _N_=7962
 NOTE: 8618 records were read from the infile "/home/ydu180/hw3/OlympicAthletes.dat".
       The minimum record length was 41.
       The maximum record length was 84.
 NOTE: The data set WORK.OLYMPICS_ERRORS_YDU18 has 8618 observations and 11 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.02 seconds
       user cpu time       0.02 seconds
       system cpu time     0.01 seconds
       memory              1922.50k
       OS Memory           30628.00k
       Timestamp           07/05/2017 05:29:21 AM
       Step Count                        132  Switch Count  178
       Page Faults                       0
       Page Reclaims                     416
       Page Swaps                        0
       Voluntary Context Switches        662
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           3080
run;

Do I need any quotation mark like ""?

Super User
Posts: 7,809

Re: Copy-and-Paste

Since you do not read from datalines, your problem has nothing to do with copy/paste. Your code does somehow not match the data in the input file. Show the whole step you used for reading the external file.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Super User
Posts: 7,970

Re: Copy-and-Paste

No, you need to show exactly what you are doing, post example test data in the post window (don't attach files) show your code etc.  I am unable to guess what you are doing as it now appears your readin in a file so what on earth does this have to do with copy + paste?

Ask a Question
Discussion stats
  • 8 replies
  • 270 views
  • 1 like
  • 3 in conversation