Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I insert a new line for export to excel

Status
Not open for further replies.

ChrisJeff

Technical User
Aug 31, 2011
1
NZ
Hi,
I have a REXX that scans through a PDS and gathers information to be placed into a another PDS which I then receive from the mainframe as a text file then import to a excel file.
What I need is to have some of the information to be in the same cell but with a line NEWLINE between it.
Can someone please assist with a tip.
This is the current code I am using"
if left(in.recid,1) = "I" then do
incond = incond || substr(in.recid,2,79) || "0A"x

however this does not appear to be working.
Your help is greatly appreciated.
 
Have you tried making it a csv file?
'"'||LineOneData||'0A'x||LineTwoData||'"'
Name the file Something.csv
Open it with EXCEL
 
Isn't newline crlf and therefore '0a0d'x? (unless you are running on *nix)


Nic
 
In ISPF edit set hex on and insert the hex codes directly into the bytes rather than trying to pass a hex string.


Nic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top