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
 

 

PL/I code tuning/Performance improvement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Virendra Shambharkar

New User


Joined: 26 Aug 2015
Posts: 50
Location: India

PostPosted: Mon Dec 05, 2016 11:57 am    Post subject: PL/I code tuning/Performance improvement
Reply with quote

Hi,

I am looking for documents or pointers for PL/I code tuning/Performance improvement . Have look over the net but did not come across any explicit documents . Any pointers will be helpful.

Thanks in advance.
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Mon Dec 05, 2016 12:05 pm    Post subject: Reply to: PL/I code tuning/Performance improvement
Reply with quote

What's your specific problem, and are you able to "profile" it to know where it is occuring?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1825
Location: UK

PostPosted: Mon Dec 05, 2016 2:38 pm    Post subject:
Reply with quote

Use 'ALIGNED' and 'REORDER'. Make the most used code the targt if IF/THEN/ELSE e.g.
Code:
IF not an abort condition
THEN some code
ELSE abort


instead of
Code:
IF abort condition
THEN abort
ELSE some code


The same for SWITCH.

Avoid DATA CONVERSION WILL BE DONE BY SUB-ROUTINE CALL messages - move your data through the datatypes eg CHAR-> PIC -> FIXED DEC.

That is just some of the simpler things that should be done. There was an entire document on the subject from IBM - but it may have been Internal Use Only. I am no longer able to find my copy.
Back to top
View user's profile Send private message
Virendra Shambharkar

New User


Joined: 26 Aug 2015
Posts: 50
Location: India

PostPosted: Mon Dec 05, 2016 3:10 pm    Post subject: Reply to: PL/I code tuning/Performance improvement
Reply with quote

Thanks a lot Nic.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1825
Location: UK

PostPosted: Tue Dec 06, 2016 4:06 pm    Post subject:
Reply with quote

Some other bits:

Use LOCATE mode when reading/writing data sets
Use the TOTAL option when declaring files
Use as many buffers as you can for your data sets - avoiding disk access
Use FIXED BIN for counters
There is an entire chapter in the programming guide re performance.
Use PLIXOPT to find correct ISA size and then code it
Remove internal routines that are used only once
Remove repetetive, i.e. duplicate, tests
Limit data movement
Hard-code values - in particular parameters to BUILTIN functions
Call user exits directly
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts CONTIG for performance? JPVRoff JCL & VSAM 7 Fri Jun 09, 2017 8:39 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


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