Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Optimize sort inrec parse

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Optimize sort inrec parse
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: 8120
Location: East Dubuque, Illinois, USA

PostPosted: Mon Jun 26, 2017 11:59 pm    Post subject: Reply to: Optimize sort inrec parse
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

Senior Member


Joined: 21 Sep 2010
Posts: 1737
Location: NY,USA

PostPosted: Tue Jun 27, 2017 1:21 am    Post subject:
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    Post subject:
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: 1232
Location: Israel

PostPosted: Tue Jun 27, 2017 2:43 pm    Post subject: Re: Optimize sort inrec parse
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 User


Joined: 29 Apr 2008
Posts: 111
Location: Maryland

PostPosted: Thu Jun 29, 2017 12:44 am    Post subject: Re: Optimize sort inrec parse
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

Senior Member


Joined: 21 Sep 2010
Posts: 1737
Location: NY,USA

PostPosted: Fri Jun 30, 2017 8:32 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts XML Parse for large file muralikrishnan_new COBOL Programming 3 Mon Jun 12, 2017 12:50 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us