View previous topic :: View next topic
|
Author |
Message |
vishwakotin
New User
Joined: 15 Mar 2017 Posts: 9 Location: India
|
|
|
|
Hi,
I have sort job which uses inrec parse to convert cab format file into fixed length. But the job is taking about 10.5 CPU.
I am looking at any other way to parse it with less cpu, also does cobol program will be faster in these cases?
Please let me know.
Thanks,
Vishwa |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Looking at your post raises several questions:
1. 10.5 CPU -- what? Is this CPU seconds? CPU minutes? Some random measurement you didn't specify for us?
2. How many records are being reformatted?
3. It is unlikely that you are going to be able to improve upon SORT performance -- SORT is already highly optimized.
4. COBOL is not likely to improve upon SORT performance, either.
5. Parsing ANYTHING tends to be a CPU-intensive process. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
|
|
Quote: |
I am looking at any other way to parse it with less cpu, also does cobol program will be faster in these cases? |
I assume , you have got all your resources in hand so give a try and check it out yourself. Will you?
Quote: |
I have sort job which uses inrec parse to convert cab format file into fixed length. But the job is taking about 10.5 CPU.
|
It is what it is as its best, nothings exceptional to your case. If it is so many of them to parse, try COBOL. |
|
Back to top |
|
|
vishwakotin
New User
Joined: 15 Mar 2017 Posts: 9 Location: India
|
|
|
|
Hi Robert,
The file has 6 million records, that is cpu minutes.
Rohit - I am going to try cobol today and I will update the outcome.
Ta |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
vishwakotin wrote: |
...inrec parse to convert cab format file into fixed length... |
can we have a look at your INREC statement ?
By "cab format files" do you mean Microsoft cabinet files ? |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2010 Location: USA
|
|
|
|
vishwakotin wrote: |
Hi,
I have sort job which uses inrec parse to convert cab format file into fixed length. But the job is taking about 10.5 CPU.
I am looking at any other way to parse it with less cpu, also does cobol program will be faster in these cases?
Please let me know.
Thanks,
Vishwa |
Any sample of your PARSE?
It is unlikely that you can improve the already optimized SORT PARSE performance unless there is some obvious incorrectness in your statement(s)... |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
|
|
Quote: |
Rohit - I am going to try cobol today and I will update the outcome. |
it shouldn't take that long to update or to answer the other questions asked. |
|
Back to top |
|
|
|