Wrap text in final .csv file

kumarmfs1

New Member
Joined
Sep 22, 2017
Messages
2
Hi All, this is kumar, Currently i am working on legacy system(Mainframes) and we use to send the final reports to users in ".csv" file format using SAS. Today we received a new requirement to dynamically "Wrap Text" for particular field.

EX:
"First Name",="Last Name",="Middle Initial",="DOB ",="Address1" ==> Header Record
"Abc ",="LM ",="MI ",="01012017",="St name and Flat No and APT name" ==> Detail Record


My requirement is to Wrap the test under "Address1" data to 11 bytes and then the next data should follow under the same field

Expected output when the file is sent through SAS in .csv file format:
"First Name",="Last Name",="Middle Initial",="DOB ",="Address1" ==> Header Record
"Abc ",="LM ",="MI ",="01012017",="St name and
Flat No and
APT name" ==> Detail Record1
"ABBB ",="LM2 ",="MI2 ",="01012017",="St name and
Flat No and
APT name ap
sample data" ==> Detail Record2


Please let me know if any solutions.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top