hi -
I have a batch job that produce an output file as HLQ1.DATA.TXT. it looks something like this:
1234567890;00;1234
2345678901;00;1234
3456789012;00;2345
4567890123;00;2345
5678901234;00;3456
And I want to send this file as excel to a customer. The current process is:
1. use reflection FTP to desktop and open the txt file in excel and adjust the columns accordingly (insert sheet rows with names, insert another row for the title).
2. then email them this file as excel.
So I’m trying to automate step #2/3 in a JCL as additional steps. Step #2 I can use a few utility to send. It’s Step #1 I’m trying to do in a job.
.TXT file conversion to .CSV/.XLSX
-
- Posts: 2
- Joined: Tue May 11, 2021 7:30 pm
- Skillset: almost none
- Referer: nobody
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: .TXT file conversion to .CSV/.XLSX
How DFSORT/ICETOOL/IEBGENER utilities may be used in your plans? Which step?
As of today, there is no mainframe utility which is able to produce any Excel file. Some “smart” programs can produce PDF files, but not Excel ones yet.
As of today, there is no mainframe utility which is able to produce any Excel file. Some “smart” programs can produce PDF files, but not Excel ones yet.
Javas and Pythons come and go, but JCL and SORT stay forever.
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: .TXT file conversion to .CSV/.XLSX
EXCEL can read CSV files, so why the need for a 'real' EXCEL format?
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: .TXT file conversion to .CSV/.XLSX
18 or 19 years ago I had a mainframe program to process SMF data and produce reports. It occurred to me it would be useful for OpenOffice (this was before LibreOffice) to also get the data. It was not hard for the mainframe program to generate a CSV data set to send to the workstation for OpenOffic (or Excel) to process to generate some decent graphs. As Sergeyken says, it should not be difficult for DFSORT to create a CSV data set much like my program in 2002 or 2003 did.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 3
- 1473
-
by sergeyken
View the latest post
Sun Nov 29, 2020 6:47 am
-
- 7
- 1987
-
by sergeyken
View the latest post
Wed Dec 23, 2020 6:39 pm
-
- 3
- 5864
-
by sergeyken
View the latest post
Sat Dec 10, 2022 2:30 am
-
-
Code conversion issue while reading JCL using REXX
by vsgurunath » Fri Jun 19, 2020 10:19 pm » in CLIST & REXX - 11
- 4254
-
by vsgurunath
View the latest post
Thu Jun 25, 2020 4:08 pm
-
-
-
EZIOE004 Logical I/O error on file occurred reading VB file
by savitha_y » Mon Feb 15, 2021 7:54 pm » in CA-Easytrieve - 3
- 4946
-
by savitha_y
View the latest post
Wed Feb 17, 2021 5:02 am
-