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

SPOOL Behavior

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

New User

Joined: 04 Jan 2006
Posts: 11
Location: Scottsdale, AZ

PostPosted: Thu Nov 06, 2014 7:57 pm
Reply with quote

I am trying to understand a block of code.
What is the behavior if the following happens…
Program performs a SPOOLOPEN OUTPUT, followed by a SPOOLWRITE and then a SYNCPOINT ROLLBACK. Does CICS perform an implicit SPOOLCLOSE KEEP or SPOOLCLOSE DELETE? The documentation implies that it does both.
Thx in advance.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator

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

PostPosted: Thu Nov 06, 2014 10:42 pm
Reply with quote

I'm not sure all of this is necessary. The SPOOOLWRITE writes the Target-Data to the Reader-Queue for subsequent submission (most of the time) as Batch JCL.

IMHO, the SYNCPOINT and SPOOLDELETE are unnecessary as the SPOOLCLOSE forces all the SPOOLWRITE's to the Reader for submission and you're done.

I'm unsure where the SPOOL Target-Data is saved after the SYNCPOINT, if saved at all. But the SPOOLDELETE (if explicitly invoked) concerns me. After an explicit SPOOLDELETE, is the SPOOL data still in the Reader?

I'll take your word for it that an implicit SPOOLDELETE is issued after a SPOOLCLOSE, although that seems strange. Perhaps it's issued at task termination, such as (for example) an explicit GETMAIN is issued at task start and explicitly freed at task termination via a FREEMAIN? I'm not sure.

A CICS Trace (via CICS System Transaction CETR) will provide step-by-step information for every CICS API (implicit or explicit) issued by the task.

Please consult with your CICS SYSPROG and/or Tech Support personnel, regarding the use of CETR. They might not be too happy if you invoked it on your own. icon_eek.gif

If your shop is using TMON, then CETR is defined to invoke a TMON replacement program associated with this transaction.

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 SPOOL commands for INTRDR CICS 8
No new posts Reading mainframe job spool while the... JCL & VSAM 7
No new posts Temp dataset unusual behavior JCL & VSAM 5
No new posts COBOL - EXIT statement weird behavior COBOL Programming 0
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands CLIST & REXX 5
Search our Forums:

Back to Top