BookmarkSubscribeRSS Feed
santhosh
Fluorite | Level 6


i have a text in column with $END$  which i need to break into multiple rows

As part of the bank s DR strategy, it has a well laid out DR plan in place, which inter-alia covers details of alternative

site in a different city/seismic zone and also provides for resource mappings for all the critical activities identified by

the Bank.$END$ In order to fulfill the DR requirements, ICICI Bank has deployed various replication features as offered by the RDBMS

and also the hardware based replication in order to fulfill the DR requirements.$END$The Recovery Time Objective (RTO) for all the critical applications identified by the Bank is between 2-8 hours.$END$ TheBank has undertaken periodic DR drills of these critical systems as per the regulatory guidelines to ensure that the

alternate systems at the DR site are always available in case of system unavailability due to any catastrophic event.

where ever i get $END$ it needs to insert into new row

3 REPLIES 3
LinusH
Tourmaline | Level 20

Nice with some business requirements to support your question Smiley Happy

But, you may need to define in more detail how you want break (what?) into multiple rows, perhaps a data sample before and after the "break"?

Data never sleeps
santhosh
Fluorite | Level 6

Sample data set and output


DATA TEST;
INPUT rem $ 1-830;
CARDS;
As part of the  DR strategy, it has a well laid out DR plan in place, which inter-alia covers details of alternative site in a different city/seismic zone and also provides for resource mappings for all the critical activities identified by the Bank.$END$ In order to fulfill the DR requirements,  Bank has deployed various replication features as offered by the and also the hardware based replication in order to fulfill the DR requirements.$END$The Recovery Time Objective (RTO) for all the critical applications identified by the Bank is between 2-8 hours.$END$ The Bank has undertaken periodic DR drills of these critical systems as per the regulatory guidelines to ensure that the alternate systems at the DR site are always available in case of system unavailability due to any catastrophic event.
RUN;


i want output as output to be in new line(row) where ever $END$ is present


test
As part of the bank s DR strategy, it has a well laid out DR plan in place, which inter-alia covers details of alternative site in a different city/seismic zone and also provides for resource mappings for all the critical activities identified by the Bank.
In order to fulfill the DR requirements,  Bank has deployed various replication features as offered by the and also the hardware based replication in order to fulfill the DR requirements.
The Recovery Time Objective (RTO) for all the critical applications identified by the Bank is between 2-8 hours.
The Bank has undertaken periodic DR drills of these critical systems as per the regulatory guidelines to ensure that the alternate systems at the DR site are always available in case of system unavailability due to any catastrophic event.

LinusH
Tourmaline | Level 20

Gosh, I thought the text was a part of your case description, not the data itself:smileylaugh:

Take a look at the FINDW-function, which result you can use as input to the SUBSTR-function, combined with explicit OUTPUT statements. That would probably do the work.

Data never sleeps

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 524 views
  • 0 likes
  • 2 in conversation