View previous topic :: View next topic |
Author |
Message |
Nancy Beginner
Joined: 23 May 2003 Posts: 77 Topics: 26
|
Posted: Fri Oct 06, 2006 3:03 am Post subject: Read TSQ |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Fri Oct 06, 2006 11:21 am Post subject: |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
|
|