Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Find the same occurrence of particular string in sas

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Find the same occurrence of particular string in sas
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: 8666
Location: Back in jolly old England

PostPosted: Wed Oct 20, 2010 11:34 am    Post subject:
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    Post subject: Reply to: Find the same occurrence of particular string in s
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: 8666
Location: Back in jolly old England

PostPosted: Wed Oct 20, 2010 12:26 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us