#1: Read TSQ Author: Nancy, Posted: Fri Oct 06, 2006 3:03 am 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
#2: Author: ofer71, Location: IsraelPosted: Fri Oct 06, 2006 11:21 am 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.