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 

Read TSQ

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Nancy
Beginner


Joined: 23 May 2003
Posts: 77
Topics: 26

PostPosted: Fri Oct 06, 2006 3:03 am    Post subject: Read TSQ Reply with quote

Hello,
I want to read a TSQ (line by line) and put the data in a flat file, by using the JCL. Please guide if we can do that. If yes, then please provide the sample.

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


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Fri Oct 06, 2006 11:21 am    Post subject: Reply with quote

You can't read a TS queue directly from within batch environment, since it's a CICS resource.

As far as I can see, you have 2 options:
1. Write a CICS program that reads the TS queue and return the records using COMMAREA. Then, call this program from batch using EXCI, getting the records back from the COMMAREA and write them to dataset.
2. Read the records using CICS program and write them to xetrapartitioned TD queue which was atached to a dataset.

Sample code? in the fine manuals.

O.
________
cheap vaporizer
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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