LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (October 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 3 Oct 2002 15:09:35 -0400
Reply-To:     diskin.dennis@KENDLE.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         diskin.dennis@KENDLE.COM
Subject:      Re: data step - data manupulation
Comments: To: Reddi <reddy_sas2000@YAHOO.COM>
Content-type: text/plain; charset=us-ascii

Reddy,

proc sort data=... by sub per nt time;

data ... set ... by sub per nt; if first.nt then flg=0; flg+1; run;

HTH, Dennis Diskin

From: Reddi <reddy_sas2000@YAHOO.COM>@LISTSERV.UGA.EDU> on 10/03/2002 02:47 PM

Please respond to Reddi <reddy_sas2000@YAHOO.COM>

Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>

To: SAS-L@LISTSERV.UGA.EDU cc:

Subject: data step - data manupulation

Hi

I would like to create the flag numbers like bellow FLG. The key variables are SUB, PER, Time ,NT. Please give me suggestion how to do it.

OBS SUB PER Time NT HR QT QTC FLG

1 101 1 -0.58 0 62 367 372 1 2 101 1 -0.57 0 62 354 359 2 3 101 1 -0.55 0 64 364 375 3 4 101 1 -0.53 0 58 359 351 4 5 101 1 -0.52 0 60 359 359 5 6 101 1 -0.50 0 58 361 357 6 7 101 1 -0.33 0 61 366 369 7 8 101 1 -0.32 0 61 358 362 8 9 101 1 -0.30 0 53 362 341 9 10 101 1 -0.28 0 58 369 362 10 11 101 1 -0.27 0 56 365 354 11 12 101 1 -0.25 0 63 368 377 12 13 101 1 -0.08 0 58 381 374 13 14 101 1 -0.07 0 61 369 372 14 15 101 1 -0.05 0 62 371 376 15 16 101 1 -0.03 0 62 357 364 16 17 101 1 -0.02 0 60 369 369 17 18 101 1 0.00 0 60 369 370 18 19 101 1 0.42 0.5 59 369 366 1 20 101 1 0.43 0.5 62 373 380 2 21 101 1 0.45 0.5 57 367 357 3 22 101 1 0.47 0.5 54 363 345 4 23 101 1 0.48 0.5 56 367 353 5 24 101 1 0.50 0.5 58 372 365 6 25 101 1 0.92 1 62 366 373 1 26 101 1 0.93 1 56 363 351 2 27 101 1 0.95 1 56 372 360 3 28 101 1 0.97 1 57 368 358 4 29 101 1 0.98 1 56 374 361 5 30 101 1 1.00 1 59 374 371 6 31 101 1 1.42 1.5 67 364 385 1 32 101 1 1.43 1.5 61 360 364 2 33 101 1 1.45 1.5 64 361 374 3 34 101 1 1.47 1.5 63 359 366 4 35 101 1 1.48 1.5 76 366 411 5 36 101 1 1.50 1.5 68 364 389 6 37 101 1 2.42 2.50 70 363 392 1 38 101 1 2.43 2.50 54 362 344 2 39 101 1 2.45 2.50 56 362 349 3 40 101 1 2.47 2.50 59 358 355 4 41 101 1 2.48 2.50 74 357 395 5 42 101 1 2.50 2.50 64 364 378 6 43 101 1 3.92 4 77 353 398 1 44 101 1 3.93 4 64 361 372 2 45 101 1 3.95 4 60 367 368 3 46 101 1 3.97 4 63 356 364 4 47 101 1 3.98 4 63 371 379 5 48 101 1 4.00 4 61 361 365 6 49 101 2 -0.58 0 64 353 365 1 50 101 2 -0.57 0 67 352 372 2 51 101 2 -0.55 0 66 352 369 3 52 101 2 -0.53 0 63 349 359 4 53 101 2 -0.52 0 69 353 380 5 54 101 2 -0.50 0 64 348 359 6 55 101 2 -0.33 0 61 352 357 7 56 101 2 -0.32 0 65 359 374 8 57 101 2 -0.30 0 67 351 372 9 58 101 2 -0.28 0 64 368 380 10 59 101 2 -0.27 0 65 360 375 11 60 101 2 -0.25 0 65 362 376 12 61 101 2 -0.08 0 66 361 381 13 62 101 2 -0.07 0 61 366 371 14 63 101 2 -0.05 0 62 371 377 15 64 101 2 -0.03 0 61 367 370 16 65 101 2 -0.02 0 61 365 369 17 66 101 2 0.00 0 55 368 354 18 67 101 2 0.42 0.5 65 371 387 1 68 101 2 0.43 0.5 64 372 385 2 69 101 2 0.45 0.5 71 374 407 3 70 101 2 0.47 0.5 67 373 393 4 71 101 2 0.48 0.5 67 361 382 5 72 101 2 0.50 0.5 65 372 389 6 73 101 2 0.92 1 79 353 407 1 74 101 2 0.93 1 88 339 411 2 75 101 2 0.95 1 83 342 400 3 76 101 2 0.97 1 62 371 377 4 77 101 2 0.98 1 67 363 384 5 78 101 2 1.00 1 61 382 386 6 79 101 2 1.42 1.5 62 374 382 1 80 101 2 1.43 1.5 64 378 390 2 81 101 2 1.45 1.5 64 365 377 3 82 101 2 1.47 1.5 65 364 378 4 83 101 2 1.48 1.5 64 377 391 5 84 101 2 1.50 1.5 63 375 383 6 85 101 2 2.42 2.50 68 360 382 1 86 101 2 2.43 2.50 64 371 383 2 87 101 2 2.45 2.50 62 383 389 3 88 101 2 2.47 2.50 62 381 386 4 89 101 2 2.48 2.50 65 380 396 5 90 101 2 2.50 2.50 65 382 396 6 91 101 2 3.92 4 69 361 387 1 92 101 2 3.93 4 67 372 394 2 93 101 2 3.95 4 65 372 388 3 94 101 2 3.97 4 65 377 392 4 95 101 2 3.98 4 71 379 412 5 96 101 2 4.00 4 66 371 389 6 97 101 3 -0.58 0 55 362 347 1 98 101 3 -0.57 0 58 356 349 2 99 101 3 -0.55 0 57 351 343 3 100 101 3 -0.53 0 59 356 352 4


Back to: Top of message | Previous page | Main SAS-L page