Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in


SPOOL Behavior

Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: SPOOL Behavior
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Nov 06, 2014 10:42 pm    Post subject: Reply to: SPOOL Behavior
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1


Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 2 Fri Jul 28, 2017 9:10 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Report output in Spool amitc23 JCL & VSAM 4 Tue Apr 26, 2016 4:32 pm

Back to Top
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us