IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Find the same occurrence of particular string in sas


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Wed Oct 20, 2010 10:52 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Oct 20, 2010 11:34 am
Reply with quote

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
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Wed Oct 20, 2010 11:39 am
Reply with quote

I am new to SAS, so can you please explain me the logic.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Oct 20, 2010 12:26 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top