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: 6966
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: 10210
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
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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