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
 

 

ispf139 - Output file is not a PDS

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

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Sat Sep 06, 2008 10:56 pm    Post subject: ispf139 - Output file is not a PDS
Reply with quote

Hi, I am executing this code but getting ISP139 error saying output file is not a PDS. But 'jdsd' i have defined is in fact a PDS.

Code:

jdsd    = "DGE.QIKREF.JCL"                             
address tso"alloc fi(FTLIB) da('"jdsd"') shr"           
address ispexec "ftopen TEMP"                           
address ispexec "ftincl QREFSKEL"                       
address ispexec "ftclose name("jobname")library(FTLIB)"
address ispexec "edit dataset('"jdsd"("jobname")')"     
address tso"free fi(FTLIB)"                             


i tried to trace and the code is stopping at FTCLOSE saying:

Code:

Current dialog statement:           
ftclose name(LECURKQR)library(FTLIB)


can you please help.

Regards
Rahul.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


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

PostPosted: Sat Sep 06, 2008 11:27 pm    Post subject:
Reply with quote

I have always used LMM... API's to deal with PDS's
because then I don't have to get into the nitty gritty of
assembler type commands,
plus the nature of an ALLOCATE to impose attributes on an existing file.

So, I don't know if you should have defined jdsd as
jdsd = "DGE.QIKREF.JCL"
or
jdsd = "DGE.QIKREF.JCL(member-name)"

because i don't use the FT... group of instructions.

I would insert an rc check after every ispexec invokation, and then trace it.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Sun Sep 07, 2008 1:21 am    Post subject: Reply to: ispf139 - Output file is not a PDS
Reply with quote

the error is in the ftopen statement ,
in order to save to a member of a pds the TEMP keyword should not be used
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Sun Sep 07, 2008 3:58 pm    Post subject:
Reply with quote

thanks. it worked! i removed TEMP from ftopen.
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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