MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Numbers with Email in excel format from mainframe

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sub
Beginner


Joined: 30 Jan 2007
Posts: 20
Topics: 12

PostPosted: Mon Jan 26, 2009 12:17 pm    Post subject: Numbers with Email in excel format from mainframe Reply with quote

I have a file which looks like as given below
NO , NAME , ACCT NBR , AMT
01 , XXXXX , 00121232 , =" 20,000"
02 , AAAAA , 34354545 , ="200,000"
03 , RRRRR , 45454554 , ="150,000"

I am sending it by e-mail in .CSV format. The file should have only 4 columns but the AMT column is getting split at the comma when i open in the excel. The AMT value ="20,000" comes as ="20 in 4th column and 000" in the 5th column. If I don't use comma the excel is fine but can someone help me to get comma for the AMT column. Is there a solution to send the numbers with comma separator and not getting split into 2 columns?

Thanks
sub
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Mon Jan 26, 2009 12:29 pm    Post subject: Reply with quote

sub,

Change the delimiter to Tab character(X'05') instead of comma . check this link for examples.

http://www.mvsforums.com/helpboards/viewtopic.php?p=1793#1793
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Tue Jan 27, 2009 9:47 am    Post subject: Reply with quote

Doesn't mean using TAB instead of comma to change the dataformat from CSV to TAB separated, with other extension at the pc.

I would prefere to use ; as delimiter.

Wyh is the equal sign part of the data? Removing the equal sign is the other possibility.

regards,
bauer
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Tue Jan 27, 2009 1:47 pm    Post subject: Reply with quote

bauer wrote:
Why is the equal sign part of the data? Removing the equal sign is the other possibility.
regards,
bauer


Nope. OP needs the equal sign to preserve the leading zero's in the amount column. if you put the numeric field with leading zeros excel will render the column in scientific format removing the leading zeros. With an equal sign and the field enclosed in quotes, excel will treat the column as text column and retain the leading zeros

Check this link which discusses the same

http://www.mvsforums.com/helpboards/viewtopic.php?p=41425#41425
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group