Hi ,
There is a requirement to export mainframe file as CSV format file using FTP.
Doing so ,the fields with leading zeroes are displayed without leading zeroes while opening the CSV file.
Any ways to retain the leading zeroes in the fields ?
Retain Leading Zeroes in CSV File exported from mainframe
- prino
- Posts: 641
- Joined: Wed Mar 11, 2009 12:22 am
- Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
- Referer: Google
- Location: Vilnius, Lithuania
- Contact:
Re: Retain Leading Zeroes in CSV File exported from mainfram
Manjucan wrote:Doing so ,the fields with leading zeroes are displayed without leading zeroes while opening the CSV file.
Opening it with what?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
robert.ah.prins @ the.17+Gb.Google thingy
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: Retain Leading Zeroes in CSV File exported from mainfram
If you are opening the file with Excel (and the critical information about which program you're using to open the file was omitted from your post), then you need to be aware that this is an EXCEL issue and NOT a mainframe issue. By default, Excel will remove leading zeros from numbers in CSV files -- if you want another behavior, I recommend you use Google for "leading zeros in CSV file" and click on some of the links provided (there's about 147,000 so you have plenty of choices).
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Retain non numeric character in IFTHEN - BUILD
by Shambu » Wed Dec 01, 2021 5:00 pm » in Syncsort/Synctool - 1
- 1981
-
by sergeyken
View the latest post
Sat Dec 04, 2021 2:28 pm
-
-
-
Using nice/renice commands on USS leading to MSG FSUMF022
by Marcels68 » Sat Oct 12, 2024 4:02 pm » in Operating Systems - 0
- 1831
-
by Marcels68
View the latest post
Sat Oct 12, 2024 4:02 pm
-
-
- 8
- 5299
-
by enrico-sorichetti
View the latest post
Fri Mar 12, 2021 4:09 pm
-
-
transferring file from pc to mainframe pds member
by valeca » Wed Sep 28, 2022 3:42 am » in TSO & ISPF - 5
- 3383
-
by Pedro
View the latest post
Thu Sep 29, 2022 12:11 am
-
-
-
remove leading special chars, space & trailing special char
by srihemz » Tue Jun 30, 2020 8:06 pm » in DFSORT/ICETOOL/ICEGENER - 2
- 3880
-
by sergeyken
View the latest post
Wed Jul 01, 2020 4:55 pm
-