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
Nice with some business requirements to support your question
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"?
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.
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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.