Fun with Data Step

Fun with Data Step

Post by Mark Terjes » Sun, 22 Dec 2002 04:07:58



Hello All,

Yes, this is a repeat performance,
but a little fun shouldn't hurt.  :o)

options nosource nonotes;
data _null_;
    sss = 'Happy Thanksgiving';
    put ///////////////////sss;
    x = input(substr(left(put(rank(substr(sss,1,1)),3.)),1,1),1.);
    c = rank(substr(sss,x,1));
    substr(sss,1,1) = byte(c-x);
    y = brshift(rank(substr(sss,6,1)),04x);
    w = band(bxor(rank('~')+y,06x),y)+y;
    z = gamma(y);
    substr(sss,blshift(y,z),z) = byte(rank(substr(sss,y+z,z))+y);
    substr(sss,y+z,z) = substr(sss,w,z);
    substr(sss,w+x,y) = collate(blshift(x,w)+x-w,,y);
    substr(sss,x,z) = collate(blshift(y,x-y)+y+z,,z);
    substr(sss,gamma(w)+x) = compress(translate(lowcase(substr(sss,z,
                             x+blshift(y,1))),'  at','race'),' nhy');
    substr(sss,y,z) = lowcase(put(var(x,x*y-z,y,z),hex1.));
    substr(sss,x+y,y) = byte(int(css(x*x/y+x-y,x*x*x/y/y/x)

-(blshift(y,y+y)+y)))||byte(int(probnorm(2.1)*100)+x);
    put sss;
run;
options source notes;

Happy Holidays,
Mark Terjeson
Northwest Crime and Social Research, Inc.
A SAS Alliance Partner
215 Legion Way SW
Olympia, WA   98501
360.870.2581 - voice,cell
360.570.7533 - fax

www.nwcsr.com

 
 
 

1. WATCOM - fun fun fun

I'm really batteling with WATCOM away from development.

Two problems:
   When I run my EXE there are no errors that I can detect, the connect to the
   db works fine but when I open a datawindow it doesn't retrieve any info
   when I know that it's there.

   The second problem/ query is how do I use the WATCOM programs to backup the
   db & log? Can I run them from my application - if so how else how else?

Frustration is going to kill me!
---------------

Business Science Information Hounours
Department of Information Systems - UCT

2. Internet Mail shortcuts

3. Data Sets and Data Step Views

4. PDA Defense

5. data step - data manupulation

6. problems using full duplex on my 486 dx2/50

7. Deleting data set in a data step

8. PROGRAMMING VACANCIES AT BULLFROG

9. Base SAS DATA Step (Reading a Cansim Data set into SAS directly)

10. Question on usage of data conversion functions in a Data Step ;

11. Question on usage of data conversion functions in a Data Step;

12. SAP PM (Fun) Consultant & SAP PS (Fun) Consutlant - Waltham, MA - shiv@terminalcontacts.com

13. More Fun with Random Data