View previous topic :: View next topic |
Author |
Message |
apru Beginner
Joined: 15 Feb 2014 Posts: 25 Topics: 6
|
Posted: Wed May 14, 2014 9:53 am Post subject: Extra partition TDQ dataset |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12359 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
apru Beginner
Joined: 15 Feb 2014 Posts: 25 Topics: 6
|
Posted: Thu May 15, 2014 7:54 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12359 Topics: 75 Location: San Jose
|
Posted: Thu May 15, 2014 11:58 am Post subject: |
|
|
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 |
|
|
apru Beginner
Joined: 15 Feb 2014 Posts: 25 Topics: 6
|
Posted: Sun May 18, 2014 9:55 am Post subject: |
|
|
Thanks Kolusu
It is working fine now . Thanks a lot . 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 |
|
|
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Sun May 18, 2014 3:50 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12359 Topics: 75 Location: San Jose
|
Posted: Mon May 19, 2014 11:10 am Post subject: |
|
|
apru wrote: | Thanks Kolusu
It is working fine now . Thanks a lot . 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 |
|
|
|
|