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

Removing tapes from the library with JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Wed Jul 08, 2009 2:08 pm
Reply with quote

Here's the relevant part of the output:
Code:
    22 *-*  UNIT = "A00"
       >L>    "A00"
    23 *-*  "ISPEXEC FTOPEN"
       >L>    "ISPEXEC FTOPEN"
       +++ RC(20) +++
    24 *-*  "ISPEXEC FTINCL DITTOJCL"
       >L>    "ISPEXEC FTINCL DITTOJCL"
       +++ RC(20) +++
    25 *-*  "ISPEXEC FTCLOSE"
       >L>    "ISPEXEC FTCLOSE"
       +++ RC(20) +++
    26 *-*  "SUBMIT '"SYSUID".ISPFILE'"
       >L>    "SUBMIT '"
       >V>    "MYUSER"
       >O>    "SUBMIT 'MYUSER"
       >L>    ".ISPFILE'"
       >O>    "SUBMIT 'MYUSER.ISPFILE'"
IKJ56265I INPUT DATA SET MYUSER.ISPFILE NOT USABLE+
IKJ56265I THE DATA SET IS EMPTY

icon_confused.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 08, 2009 2:18 pm
Reply with quote

try changing
Code:

//REXX1    EXEC PGM=IKJEFT01
//SYSEXEC  DD  DSN=MYUSER.PRIVLIB,DISP=SHR
//SYSTSPRT DD  SYSOUT=*
//SYSTSIN  DD  *
 %DITTOREX
/*
//

to
Code:

//REXX1    EXEC PGM=IKJEFT01
//SYSEXEC  DD  DSN=MYUSER.PRIVLIB,DISP=SHR
//SYSTSPRT DD  SYSOUT=*
//SYSTSIN  DD  *
 ISPSTART CMD(%DITTOREX)
/*
//
Back to top
View user's profile Send private message
Ivan P

New User


Joined: 08 Jun 2009
Posts: 63
Location: Europe

PostPosted: Wed Jul 08, 2009 4:04 pm
Reply with quote

After adding ISPPROF, ISPPLIB, ISPSLIB, ISPTLIB and ISPMLIB statements to the JCL, it works. \o/

But, if I switch back to:
//SYSTSIN DD *
%DITTOREX

it doesn't work... so it seems ISPSTART CMD() is crucial.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 08, 2009 4:06 pm
Reply with quote

Oh yes, and I should have thought about it earlier ...........

If you invoke ISPF services within your REXX code, you must use ISPSTART.
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 -> JCL & VSAM Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts Calling an Open C library function in... CICS 1
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Access library name in REXX CLIST & REXX 6
Search our Forums:

Back to Top