How to convert a Flat PS file to CSV file using sort card.
Moderators: Frank Yaeger, Moderator Group
-
- Member
- Posts: 2
- Joined: Wed Nov 07, 2012 5:40 am
How to convert a Flat PS file to CSV file using sort card.
Can anyone please help me by provinding a sort card for conversion of a flat file to a CSV file. Thanks!
-
- Member
- Posts: 2
- Joined: Wed Nov 07, 2012 5:40 am
Hi
My PS file with Record Lentgh = 320, RECFM = FB, has below rows
04QF 1938 04NOV1201Y0115115000051 PER ASP
04QF 1938 04NOV1202Y0115040064104 ASP DRW
My output file i.e., (Comma Separated Value/.CSV) should come as
04,QF ,1938, ,04NOV12,01,Y,0,115,115,000,051, ,PER, ,ASP,
04,QF ,1938, ,04NOV12,02,Y,0,115,040,064,104, ,ASP, ,DRW,
I want to write my input flat file into CSV file format because I want the data exported to excel sheet directly from the mainframe dataset.
Please let me know if you want more details.
Thanks & Regards
My PS file with Record Lentgh = 320, RECFM = FB, has below rows
04QF 1938 04NOV1201Y0115115000051 PER ASP
04QF 1938 04NOV1202Y0115040064104 ASP DRW
My output file i.e., (Comma Separated Value/.CSV) should come as
04,QF ,1938, ,04NOV12,01,Y,0,115,115,000,051, ,PER, ,ASP,
04,QF ,1938, ,04NOV12,02,Y,0,115,040,064,104, ,ASP, ,DRW,
I want to write my input flat file into CSV file format because I want the data exported to excel sheet directly from the mainframe dataset.
Please let me know if you want more details.
Thanks & Regards
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
Code: Select all
OPTION COPY
INREC BUILD=(1,4,C','14,1,C',',6,4,C','...
etc
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page