Read TSQ
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Job Control Language(JCL)

#1: Read TSQ Author: Nancy PostPosted: 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: ofer71Location: Israel PostPosted: 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.

Sample code? in the fine manuals.

O.
________
cheap vaporizer



MVSFORUMS.com -> Job Control Language(JCL)


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group