IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Optimize sort inrec parse


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vishwakotin

New User


Joined: 15 Mar 2017
Posts: 9
Location: India

PostPosted: Mon Jun 26, 2017 11:15 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Mon Jun 26, 2017 11:59 pm
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2572
Location: NYC,USA

PostPosted: Tue Jun 27, 2017 1:21 am
Reply with quote

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
View user's profile Send private message
vishwakotin

New User


Joined: 15 Mar 2017
Posts: 9
Location: India

PostPosted: Tue Jun 27, 2017 7:09 am
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1348
Location: Israel

PostPosted: Tue Jun 27, 2017 2:43 pm
Reply with quote

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
View user's profile Send private message
sergeyken

Active Member


Joined: 29 Apr 2008
Posts: 932
Location: Maryland

PostPosted: Thu Jun 29, 2017 12:44 am
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2572
Location: NYC,USA

PostPosted: Fri Jun 30, 2017 8:32 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Very Large Sort failed - Seeking reco... DFSORT/ICETOOL 7
No new posts Date conversion using SORT SYNCSORT 4
No new posts Which SORT utility can improve the Pe... DFSORT/ICETOOL 16
No new posts Using sort on VB records based on off... DFSORT/ICETOOL 6
No new posts COBOL VS SORT Utility for file format... COBOL Programming 6
Search our Forums:

Back to Top