Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 8593
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: 8593
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 Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us