View previous topic :: View next topic
|
Author |
Message |
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
Hi,
My requirement is to find the same occurence of PR ID field in file and find teh corresponding status field also. If status in any is "Y', i have to update all status under same PR id should be updated with 'Y'.
Ex:
Name PR-ID Status
AAA P101 N
BBB P101 Y
CCC P101 N
DDD P102 Y
EEEE P103 N
Here PR ID P101 has 3 entries. Status has 'Y" in 2nd entry. Then status has to be updated with "Y" in all 3 P101 PR ID's.
Kindly help me how to do this in SAS. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
This is a fairly simple request, so I will ask what you have tried so far on your own and what problems you encounter.
If you are having problems, please explain the logic that you use to build your code. |
|
Back to top |
|
|
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
I am new to SAS, so can you please explain me the logic. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You really do need to learn to ask questions properly for anyone to even want to be helpful. You need to give much more detail than you already have done.
Also, what training has your establishment given in SAS for you so far.
Are we talking only one value of PR-ID or is this action for all values that can occur within PR-ID or only for P101.
Is the output required as a SAS format file or in the same format as the original input file.
What is the expected volume of data. |
|
Back to top |
|
|
|