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

Dynamic array request/response containers


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Suja.Sai

New User


Joined: 26 Sep 2008
Posts: 12
Location: Bangalore

PostPosted: Tue Jan 24, 2017 11:37 am
Reply with quote

Hi,

We have the below requirement.

The input request container has the count of number of records passed in the input request array container. For each input record fetched, we have to query the table and if the record is found in the table, then we have to put it in the response array container.

The response array container is declared as an unbounded dynamic array.

We do not have the count of the output records until we process the final input record. For each input record, there may/maynot be an output record.


Please suggest if the below approach is ok to populate the dynamic response array container?

Do the below processing for each record fetched from the table...
1) Calculate the dynamic response array length for the fetched record
2) GetMain
3) Populate the response array container
4) Put the response array container
5) FreeMain

I doubt if it is a good practice to use getmain and freemain frequently in a loop. Please let me know if there are other better ways to achieve this.


Please help.

Thanks,
Suja
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


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

PostPosted: Tue Jan 24, 2017 11:51 am
Reply with quote

How if you build the output of all into cobol array and from there then into the response array containers?
Back to top
View user's profile Send private message
Suja.Sai

New User


Joined: 26 Sep 2008
Posts: 12
Location: Bangalore

PostPosted: Tue Jan 24, 2017 12:17 pm
Reply with quote

Is there any other way to do this other than using a cobol internal array?
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts MQ response when MQGET of a stopped q... Java & MQSeries 2
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
Search our Forums:

Back to Top