IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Copy TSQ in flat file in TSO batch.


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
milind suman
Warnings : 1

New User


Joined: 19 Aug 2009
Posts: 55
Location: Pune

PostPosted: Fri Dec 09, 2011 7:23 pm
Reply with quote

Hello ,


I want to copy the TSQ data in a flat file , How can i do this in batch in TSO region .

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Dec 09, 2011 7:33 pm
Reply with quote

When you say "TSQ", are you talking about a Temporary Storage Queue in a CICS region?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Dec 09, 2011 7:37 pm
Reply with quote

strickly speaking,
i would say that batch and tso region are mutually exclusive.

in other words, you can not do something in a tso region via batch.
Back to top
View user's profile Send private message
milind suman
Warnings : 1

New User


Joined: 19 Aug 2009
Posts: 55
Location: Pune

PostPosted: Fri Dec 09, 2011 7:51 pm
Reply with quote

yes I mean Temporary storage Que in CICS , is there any way to copy the TSQ data in tso without doing anything in cics ?
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Dec 09, 2011 8:18 pm
Reply with quote

Since Temporary Storage is, by definition, temporary - why on earth would you want to do this? DFHTEMP is intended for internal use in the CICS environment and should not be interfered with in the manner suggested.

Garry.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Dec 09, 2011 8:25 pm
Reply with quote

Without a 3rd-Party product (and even that may not do the trick), there isn't an easy way to do this and at the very least (without a 3rd-Party product), would require an EXCI/ECI DPL interface to the target CICS region.

I'm thinking a REXX exec could be launched from ISPF screen 6 or native TSO and CALL an EXCI/DPL Client program, which would then link to the target region's Server program.

Or, this could also be accomplished directly from Batch, using a Client/DPL program linking to a Server program in the target region (same concept as outlined from ISPF/TSO).

But, these are just general ideas and would require significant tweaking and consideration.

HTH....

Mr. Bill
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Dec 09, 2011 8:43 pm
Reply with quote

Bill O'Boyle wrote:
Without a 3rd-Party product (and even that may not do the trick), there isn't an easy way to do this and at the very least (without a 3rd-Party product), would require an EXCI/ECI DPL interface to the target CICS region.

I'm thinking a REXX exec could be launched from ISPF screen 6 or native TSO and CALL an EXCI/DPL Client program, which would then link to the target region's Server program.

Or, this could also be accomplished directly from Batch, using a Client/DPL program linking to a Server program in the target region (same concept as outlined from ISPF/TSO).

But, these are just general ideas and would require significant tweaking and consideration.

HTH....

Mr. Bill


Yes, but the OP was looking for a way without any change in CICS

Quote:
yes I mean Temporary storage Que in CICS , is there any way to copy the TSQ data in tso without doing anything in cics ?


Garry.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Dec 09, 2011 8:54 pm
Reply with quote

Quote:
yes I mean Temporary storage Que in CICS , is there any way to copy the TSQ data in tso without doing anything in cics ?
Your question can be answered simply: NO!
Back to top
View user's profile Send private message
milind suman
Warnings : 1

New User


Joined: 19 Aug 2009
Posts: 55
Location: Pune

PostPosted: Fri Dec 09, 2011 9:14 pm
Reply with quote

Thanks everybody for the reply . saved a lot of time in wasting time to search for something like this.
ok , so going conventionally I need to define a a file in FCT and new program in relevant table to read a tsq in CICS program or there could be a better time saver option .
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Dec 09, 2011 9:23 pm
Reply with quote

If you use the EXCI/DPL method, you could "stack" the TSQ records in the commarea, passed from the EXCI program and subsequently addressed by the Server program.

When the Server program returns control to the Client (EXCI) program, then you can "pop" all these records from the commarea and write them to a QSAM file, no FCT entry required.

Note: IBM's recommended maximum commarea-length for EXCI/DPL is 32500.

Mr. Bill
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Dec 09, 2011 9:38 pm
Reply with quote

have not used it myself,
but there are "rexx panels" and rexx scripts available in cics.

would not be supprised if there is a easy way to script a "que drainer".
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Dec 09, 2011 9:50 pm
Reply with quote

here are some links:

www.mainframezone.com/cics-websphere/rexx-for-cics/P1

nersp.nerdc.ufl.edu/~sfware/share107/s8335sfw.pdf

www-01.ibm.com/software/htp/cics/products/rexx/

publib.boulder.ibm.com/infocenter/cicsts/v2r3/index.jsp?topic=/com.ibm.cics.ts23.doc/dfha1/dfha1mi.htm


can't get a price on it though, and you know that it will cost.
but, before you start buying 3rd party software,
maybe interesting to create your own cics 'utilities' with rexx.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Thu Dec 29, 2011 2:37 am
Reply with quote

3rd part product BatchCICS-Connect (www.batchcics.com) provides ability to read and/or write TSQ's from batch.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top