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

 

FTOPEN TEMP is failing due to dataset is OPEN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
mbenaud

New User


Joined: 15 Jun 2009
Posts: 3
Location: Glasgow - Scotland - UK

PostPosted: Thu Jul 28, 2016 4:28 pm    Post subject: FTOPEN TEMP is failing due to dataset is OPEN
Reply with quote

This is my first post but I have been reading this forum for years.
I generally get all my issues fixed, but this one is confusing me.
I use a panel to enter TWS applications so I can clone them to another name for many environments. The REXX after using the panel submits a job using the following piece of code
Code:
DO                                         
  ADDRESS ISPEXEC                           
  "FTOPEN TEMP"                             
  "FTINCL TWSCLONE"                         
  "FTCLOSE"                                 
  "VGET (ZTEMPF) SHARED"                   
  dmy = OUTTRAP('resp.')                   
    ADDRESS TSO; "SUBMIT '" || ZTEMPF || "'"
  dmy = OUTTRAP('OFF')                     
  SAY jobMsg()                             
END

But I am getting the following (an my second run - it works the first time)
Code:
    23 *-*   ADDRESS ISPEXEC                                             
    24 *-*   "FTOPEN TEMP"                                               
       >L>     "FTOPEN TEMP"                                             
ISPF system data set allocation error - press Enter to continue.         
Temporary control card data set cannot be allocated.                     
Data set 'MBENTLE.DEVA.SPFTEMP1.CNTL' in use by another user, try later.
  ISPF102 No work file            -/-Work file not open.                 
Even if I delete said SPFTEMP1 file
the output in SDSF at the top reads
Code:

IEF403I TWSCLO02 - STARTED - TIME=15.54.19                 
IEC331I 042-006(040B0425),TWSCLO02,STEP010 ,SCRT,IGG0CLH0   
IEC331I VOL,TSOD92,NAME,RGILMOU.DEVA.SPFTEMP1.CNTL         
IGD17060I DELETE/RENAME FAILED BECAUSE DATA SET IS OPEN  282
ON VOLUME TSOD92                                           
DATA SET IS RGILMOU.DEVA.SPFTEMP1.CNTL                     


It doesn't make sense ?? Any idea's
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 28, 2016 5:23 pm    Post subject:
Reply with quote

Have you tried "FTCLOSE TEMP" ???

I must admit that I always allocate and use ISPFILE for file tailoring
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 641
Location: Whitby, ON, Canada

PostPosted: Thu Jul 28, 2016 5:54 pm    Post subject:
Reply with quote

Does the job that you submitted use ISPF services? If so, it might be holding SPFTEMP1.CNTL
Back to top
View user's profile Send private message
mbenaud

New User


Joined: 15 Jun 2009
Posts: 3
Location: Glasgow - Scotland - UK

PostPosted: Thu Jul 28, 2016 7:22 pm    Post subject:
Reply with quote

Cheers expat but
Code:
ISPS105 Invalid keyword         -/-'TEMP' is not a valid keyword for this service.

Cheers don.Leahy - The only ISPF it seems uses is the FT* File tailoring stuff - most of it is rexx
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Thu Jul 28, 2016 9:24 pm    Post subject: Reply to: FTOPEN TEMP is failing due to dataset is OPEN
Reply with quote

Logoff then logon again.

Show us the traces of both the first time you run it and the second time. I do not think the first FTCLOSE worked.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Thu Jul 28, 2016 9:36 pm    Post subject: Reply to: FTOPEN TEMP is failing due to dataset is OPEN
Reply with quote

Also, issue TSO PROFILE MSGID before running the exec.

You did not show us the contents of TWSCLONE... does it refer to DEVA.SPFTEMP1.CNTL?

What prefix do you use? MBENTLE or RGILMOU?
Back to top
View user's profile Send private message
mbenaud

New User


Joined: 15 Jun 2009
Posts: 3
Location: Glasgow - Scotland - UK

PostPosted: Fri Jul 29, 2016 3:59 pm    Post subject:
Reply with quote

We have tried logging on and off, and Both MBENTLE and RGILMOU are doing the same jobs and it works once then not the secon time
I will get traces of the 1st and second run - when we run it laters
Back to top
View user's profile Send private message
Willy Jensen

New User


Joined: 01 Sep 2015
Posts: 96
Location: Switzerland

PostPosted: Sat Jul 30, 2016 3:58 pm    Post subject:
Reply with quote

Your submitted job complains about rename or delete failure, why is the job allocating your temp file? If that job is still in the system then it could explain why the dataset is held.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts TSO Logon Failing - Acount Not matching SLNewton TSO/ISPF 1 Thu Aug 25, 2016 9:37 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm


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