Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10327
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us