Hi,
Can anyone tell me how to download a dataset into a .CSV format file ?
Thanks a lot.,
Downloading a dataset as .CSV format
-
- Posts: 11
- Joined: Wed Apr 02, 2008 5:05 pm
- Skillset: COBOL,CICS,DB2,IMS,VSAM,JCL
- Referer: Friend
-
- Posts: 110
- Joined: Thu Dec 27, 2007 5:18 pm
- Skillset: Known little stuffs to answer a few queries!!
- Referer: Google
- Contact:
Re: Downloading a dataset as .CSV format
Just download the comma demilited file and rename it as SOME_NAME.CSV
Here are the few points to remember about comma demilited file.
#1 Each field should be seperated with a comma (you can use any symbol other symbol too). For example,
#2 If one of your fields already has ',' in it, then you have to be little careful and have to add double quotes to differentiate the delimiter. For example,
If this is not what you want, then post the requirements clearly.
Arun.

Here are the few points to remember about comma demilited file.
#1 Each field should be seperated with a comma (you can use any symbol other symbol too). For example,
Code: Select all
Emp_ID,Emp_Name,Emp_Dept
12345,Sam,Healthcare
23456,Ram,Insurance
34567,Kumar,Retail
#2 If one of your fields already has ',' in it, then you have to be little careful and have to add double quotes to differentiate the delimiter. For example,
Code: Select all
"Emp_ID","Emp_Name","Emp_Dept"
"12345","Sam","Healthcare"
"23456","Ram","Insurance"
"34567","Kumar","Retail"
If this is not what you want, then post the requirements clearly.
Arun.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: Downloading a dataset as .CSV format
Hello,
If there is any chance that the data might contain commas as data, i'd suggest using a different delimiter. The tab character (x'05') works well. It you might have commas in the data and must use commas as the delimiters, then do as suggested and wrap each field in double quotes.
Downloading the file should not be a problem. Keep in mind that the download will not make csv data from plain text data - the mainframe process that creates the file must also create the delimiters.Can anyone tell me how to download a dataset into a .CSV format file ?
If there is any chance that the data might contain commas as data, i'd suggest using a different delimiter. The tab character (x'05') works well. It you might have commas in the data and must use commas as the delimiters, then do as suggested and wrap each field in double quotes.
Hope this helps,
d.sch.
d.sch.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 11
- 3666
-
by willy jensen
View the latest post
Thu Oct 15, 2020 1:25 am
-
-
How to overlay a constant value in PD format
by Shambu » Mon Jun 28, 2021 11:56 pm » in Syncsort/Synctool - 1
- 3494
-
by sergeyken
View the latest post
Tue Jun 29, 2021 1:18 am
-
-
-
FORMAT THE FILE SO ALL CHILD UNDER SAME PARENT IN ONE LINE
by azhar » Wed May 31, 2023 4:27 pm » in JCL - 1
- 1752
-
by sergeyken
View the latest post
Thu Jun 01, 2023 3:06 am
-
-
- 8
- 3548
-
by sergeyken
View the latest post
Wed Nov 17, 2021 6:56 pm
-
- 3
- 2655
-
by sergeyken
View the latest post
Sat Nov 16, 2024 11:05 pm