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 

Mainframe Dataset to CSV - Any program/utility solution?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
kumar26fl
Beginner


Joined: 08 Apr 2010
Posts: 14
Topics: 9

PostPosted: Thu Dec 09, 2010 4:59 pm    Post subject: Mainframe Dataset to CSV - Any program/utility solution? Reply with quote

Hello,

I use the JCL in this link to save the formatted file to txt file. However, I would like to explore if there is any way that I can create a csv file out of the formatted file. Any solution involving jcl utilities is appreciated. I am trying to avoid cobol or for ex; SAS programming to read each field and add commas .

http://www.mvsforums.com/helpboards/viewtopic.php?t=4670&highlight=comma+delimited+copybook

Appreciate any suggestions or help to create a csv file from a formatted file using copybook

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


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

PostPosted: Thu Dec 09, 2010 5:03 pm    Post subject: Reply with quote

kumar26fl,

Please search before posting. Check these links


http://www.mvsforums.com/helpboards/viewtopic.php?t=11417&highlight=tab+delimited

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
kumar26fl
Beginner


Joined: 08 Apr 2010
Posts: 14
Topics: 9

PostPosted: Thu Dec 09, 2010 9:09 pm    Post subject: Reply with quote

Thanks Kolusu for the links, however this is not what I am looking for. I am familiar with these methods. Sorry if I did not make my question clearer in my previous post.

What I am looking for is not to code the offsets of the individual fields in the file layout. I am looking for a step that will get the offsets or the field mapping from the copybook layout and add the delimitor after the printed format data value of each field.

I know fileaid has XML output option, but I am not sure if it gives data value for compressed or binary fields with xml tags. Fileaid xml is the closest that I have seen so far, if I have to avoid coding offsets for each field in the layout.


Thanks again
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Fri Dec 10, 2010 2:37 pm    Post subject: Reply with quote

Quote:

I am trying to avoid cobol or for ex; SAS programming to read each field and add commas .
Suggest you reconsider. . .

Taking for granted there is some small program that already reads the file using the copybook, it is a simple matter of editing to clone this code into a new program, read the file, reformat the packed-decimal and/or binary fields into something more useful on the target system, STRING the fields and the delimiters into an output area and write the output record.

Once you have the first one, it can be cloned for other files/formats.

If you know how to EDIT code, you can create a new one every few minutes. . .

What several of my clients have done is to write 2 files in the process that creates the file to be reformatted/delimited and save an additional read of the data.
_________________
All the best,

di
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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