Breaking Single Column text into multiple rows

Reply
Frequent Contributor
Posts: 85

Breaking Single Column text into multiple rows


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

Super User
Posts: 5,260

Re: Breaking Single Column text into multiple rows

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
Frequent Contributor
Posts: 85

Re: Breaking Single Column text into multiple rows

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.

Super User
Posts: 5,260

Re: Breaking Single Column text into multiple rows

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
Ask a Question
Discussion stats
  • 3 replies
  • 181 views
  • 0 likes
  • 2 in conversation