MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Extra partition TDQ dataset

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
apru
Beginner


Joined: 15 Feb 2014
Posts: 25
Topics: 6

PostPosted: Wed May 14, 2014 9:53 am    Post subject: Extra partition TDQ dataset Reply with quote

In order to read the contents of a PS file ,I had defined an extrapartition TDQ.Now I have another program which has to write contents into the same dataset which has been defined for TDQ.On execution ,the program is waiting for the resource (dataset) since it is already in use by TDQ.How can I resolve this problem???Is it possible to write into the dataset???
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12357
Topics: 75
Location: San Jose

PostPosted: Wed May 14, 2014 11:05 am    Post subject: Reply with quote

apru,


Try Indirect destinations—DFHDCT TYPE=INDIRECT

and check this link for DFHDCT example
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
apru
Beginner


Joined: 15 Feb 2014
Posts: 25
Topics: 6

PostPosted: Thu May 15, 2014 7:54 am    Post subject: Reply with quote

Thanks kolusu...

But I think I have to give a better description of my problem.Actually I have a program which writes some data into a PS dataset and inorder to read the contents of this dataset I have defined a TDQ for the dataset and using the TDQ, I have a program to read the contents from his extrapartition TDQ(inout mode).Before defining this TDQ, I was able to add data to the dataset using the first program .But once I defined TDQ for the dataset , when I try to execute the first program, I am getting the mesage-waiing for dataset.I even tried defining another extrapartition TDQ with output mode for the same dataset.But still I am facin the same issue .I am not able to find out why the dataset is in waiting state??
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12357
Topics: 75
Location: San Jose

PostPosted: Thu May 15, 2014 11:58 am    Post subject: Reply with quote

apru wrote:
Thanks kolusu...

But I think I have to give a better description of my problem.Actually I have a program which writes some data into a PS dataset and inorder to read the contents of this dataset I have defined a TDQ for the dataset and using the TDQ, I have a program to read the contents from his extrapartition TDQ(inout mode).Before defining this TDQ, I was able to add data to the dataset using the first program .But once I defined TDQ for the dataset , when I try to execute the first program, I am getting the mesage-waiing for dataset.I even tried defining another extrapartition TDQ with output mode for the same dataset.But still I am facin the same issue .I am not able to find out why the dataset is in waiting state??


I understood the problem correctly, I need you to read thoroughly the links I gave. You need to define the TDQ as INDIRECT for the 2nd program. So try reading the links I gave and understand them and try to implement that logic.
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
apru
Beginner


Joined: 15 Feb 2014
Posts: 25
Topics: 6

PostPosted: Sun May 18, 2014 9:55 am    Post subject: Reply with quote

Thanks Kolusu

It is working fine now Very Happy . Thanks a lot Very Happy . But I have another doubt.Actually I am reading from extrapartition TDQ into an array.Currently I am limiting the occurs clause to a fixed number.Is it possible to make the occurs clause flexible so that it will be able to accumulate any no:of records read from the extrapartition TDQ?.
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Sun May 18, 2014 3:50 pm    Post subject: Reply with quote

Quote:
Is it possible to make the occurs clause flexible so that it will be able to accumulate any no:of records read from the extrapartition TDQ?.

I believe the problem is not flexibility but rather volume. There is some volume that will not fit into an array.

Keep in mind that when you define an array with OCCURS DEPENDING ON the array will take the maximum amount specified.
_________________
All the best,

di
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12357
Topics: 75
Location: San Jose

PostPosted: Mon May 19, 2014 11:10 am    Post subject: Reply with quote

apru wrote:
Thanks Kolusu

It is working fine now Very Happy . Thanks a lot Very Happy . But I have another doubt.Actually I am reading from extrapartition TDQ into an array.Currently I am limiting the occurs clause to a fixed number.Is it possible to make the occurs clause flexible so that it will be able to accumulate any no:of records read from the extrapartition TDQ?.


Prior to COBOL 5.1 , it has a limitation of 16MB per internal table. With COBOL 5.1 you have 999 MB limit.

Assuming that you are not yet using cobol 5.1 you can define multiple tables each with 16MB and use them.

But the biggest question is why do you need an internal array for reading the TDQ?
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group