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
 

 

How to access Extra partition TDQ in Batch Program....

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
mots

New User


Joined: 16 May 2007
Posts: 6
Location: Pune

PostPosted: Sat Apr 04, 2009 10:41 am    Post subject: How to access Extra partition TDQ in Batch Program....
Reply with quote

Hello,

1…)

Any can help to know how to access Extra partition TDQ in Batch Program. Do the records of extra partition TDQ store in VSAM file implicitly or we do need to write explicitly into a VSAM file and then access in BATCH environment, If this is case then what will be then name of TDQ, is it same of VSAM file name or does mapping is there between file name TDQ name.

2…)

Is Extra partition TDQ are read destructive as like intra partition TDQ ?

3)

Can we write a record in TSQ randomly by specifying the ITEM-NO?……. (means write into the ITEM NO – 4 then ITEM NO – 8 then so on.)

Thanks
Mots
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8002
Location: Bellevue, IA

PostPosted: Sat Apr 04, 2009 9:17 pm    Post subject:
Reply with quote

1. Extrapartition TDQ is a sequential file. It has absolutely nothing to do with VSAM. Access the file in batch by putting a DD statement with the dataset name just like any other sequential file. Be aware, though, that the records written in CICS are not immediately available to a batch program.

2. What does the manual say?

3. I don't see anything in the manual either way, although I suspect the answer is no (how would CICS know how long items 1, 2, and 3 were if they don't exist already).
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sun Apr 05, 2009 12:58 am    Post subject:
Reply with quote

There is a Vendor Software product that has feature for reading and
writing TDQ from Batch.

reference >>
http://cicswiki.org/cicswiki1/index.php?title=BatchCICS-Connect_-_24x7_Integration
Back to top
View user's profile Send private message
mots

New User


Joined: 16 May 2007
Posts: 6
Location: Pune

PostPosted: Sat Apr 11, 2009 1:55 pm    Post subject: Reply to: How to access Extra partition TDQ in Batch Program
Reply with quote

Robert Thanks for clarification.

Please can anyone tell me how will write a JCL for accessing the TDQ in Batch…….. and
also will it be possible to submit a JCL program CICS program then how…...
Back to top
View user's profile Send private message
mots

New User


Joined: 16 May 2007
Posts: 6
Location: Pune

PostPosted: Sat Apr 11, 2009 3:05 pm    Post subject: Reply to: How to access Extra partition TDQ in Batch Program
Reply with quote

Hello.........

Can anyone help me to know.........

1) If I have a TSQ name which is combination of (TERMID and TASKNO), from where I will get TSQ name specially TASKNO.
I Know TERMID but TASKNO is dynamic how can I find it........
I know only CEMT INQ TASK transaction which gives the Task number but it gives the current execution TASKNO, but If the time taken for execution of my PROGRAM is very short then How will I find the TASKNO.......... Is there any log very the TASKNO information will get stored............?

2) As the TDQ is read destructive, If I execute the CEBR TDQNAME command then also the data will get lost from TDQ means for the next time CEBR TDQNAME command will I get the error like TDQ Doest not exist or I will be able to see the TDQ records.........

Thanks,
Mots
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8002
Location: Bellevue, IA

PostPosted: Sat Apr 11, 2009 7:42 pm    Post subject:
Reply with quote

There's nothing to write when accessing an extrapartition TDQ from batch -- use the dataset name on a DD statement and there you go. If you want to access an intrapartition TDQ from batch, read the manual to see if you can do what you want.

There are many, many examples of what to do to submit a job stream from a CICS program on this forum already -- search and if you have a question then let us know.

You would want to pass the task number in DFHCOMMAREA to the next program which needs to read the TSQ. If your program doesn't store the task number, there's no way to recover it since there's not really any logs that keep that data available.

Using CEBR means the data is not available to the application -- your CEBR grabbed it. Once you've read all the data in the TDQ, you would get back some kind of error (most likely QZERO) but once read, the data will not be available again.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Sat Apr 11, 2009 9:00 pm    Post subject:
Reply with quote

Hello,

Quote:
Posted: Sat Apr 11, 2009 2:25 am Post subject: Reply to: How to access Extra partition TDQ in Batch Program
Quote:
Posted: Sat Apr 11, 2009 3:35 am Post subject: Reply to: How to access Extra partition TDQ in Batch Program

Hello.........

Can anyone help me to know.........


It is completely inappropriate/inconsiderate to post a question and only 1 hour later ask where is a reply. . .
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
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


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