Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Call to CICS_COBOL program
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Aug 15, 2007 2:03 pm    Post subject: Re: Reply to: Call to CICS_COBOL program
Reply with quote

ami777us wrote:
CICS GUY---IN UR WHOLE MSG U HAVENT TOLD ME IF MY SYNTAX WAS RIGHT.IF U DONOT UNDERSTAND MY PROBLEM THEN U BETTER DONT RESPOND.LET THE MORE INTELLIGENT GUYS LIKE DICK AND OTHERS ANSWER.OK!!
You don't have to yell....
CICS Guy wrote:
ami777us wrote:
Please let me know what am i doing wrong.I am sure I am missig something.
Yes, at least the EIB in the PRGA.
Back to top
View user's profile Send private message

ami777us

New User


Joined: 06 Apr 2007
Posts: 33
Location: USA

PostPosted: Wed Aug 15, 2007 8:50 pm    Post subject:
Reply with quote

Dick-I have used Strobe to determine that the parser is consuming a high CPU.I hae learnt that by changing subscript to index within the parser the performance can be improved.I have a doubt on the index now.

There are MOVE statements for the subscript value to another working storage variable for some length calculation.

My Quesion is "Can I just move the Index to the working storage or there is any other way to get around it"?? I think that Index values cannot be just moved.Can you please confirm.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Wed Aug 15, 2007 9:23 pm    Post subject:
Reply with quote

use a SET statement to populate a numeric variable with the 'occur #' of an index.

Code:

05  SAVE-OCCURANCE-NUMBER  PIC S9(9) COMP.

SET SAVE-OCCURANCE-NUMBER TO INDEX-1



you can use any numeric PIC clause, but COMP converts faster.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19254
Location: Inside the Matrix

PostPosted: Wed Aug 15, 2007 9:25 pm    Post subject:
Reply with quote

Hello,

Quote:
I hae learnt that by changing subscript to index within the parser the performance can be improved
While this may be true in some cases, i expect that the parsing approach the code uses currently will not significantly change cpu utilization by switching from subscript to index.

If you work with an index, you would use SET rather than MOVE.

As i mentioned previously
Quote:
If you post your fields that are being parsed and the output field(s) expected from some representative sample inputs, we may be able to offer alternate schemes for implementing.
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 -> CICS All times are GMT + 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Is multiple program names allowed in ... Sakthidevi PL/I & Assembler 1 Tue Nov 19, 2019 11:12 pm
No new posts Running a REXX exec program using ZOSMF Sakthi344 CLIST & REXX 3 Tue Oct 15, 2019 3:13 pm
No new posts How to handle NULL in COBOL program bhaskar_kanteti COBOL Programming 8 Mon Oct 07, 2019 3:54 pm
No new posts REXX - CLIST program to be invoked af... pkmurali CLIST & REXX 5 Wed Sep 04, 2019 4:31 pm
No new posts Difference between GE and GB return c... Poha Eater IMS DB/DC 8 Fri Jul 12, 2019 12:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us