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

How to write to a PS File in CLIST.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivakumar cv

New User


Joined: 18 Sep 2007
Posts: 4
Location: US

PostPosted: Thu Sep 27, 2007 6:28 pm
Reply with quote

Hi all,

I am trying to write to a PS from CLIST.

I am using
GLOBAL

CONTROL END(ENDO) MSG CON SYM LIST PROMPT NOFLUSH

I am getting the following error:

IKJ56247I DATA SET <dataset name> NOT FREED, IS NOT ALLOCATED
How to go about it.

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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Sep 27, 2007 7:09 pm
Reply with quote

Chapter 9. Performing File I/O from the z/OS V1R7.0 TSO/E CLISTs manual.
Back to top
View user's profile Send private message
sivakumar cv

New User


Joined: 18 Sep 2007
Posts: 4
Location: US

PostPosted: Thu Sep 27, 2007 7:21 pm
Reply with quote

I had been refering to it.

I am using this

"GLOBAL

CONTROL END(ENDO) NOMSG NOCON NOSYM NOLIST PROMPT FLUSH"

want to know if there is any mistake in the above code?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Sep 27, 2007 10:09 pm
Reply with quote

Have you looked in the messages and codes book for IKJ56247I
Back to top
View user's profile Send private message
sivakumar cv

New User


Joined: 18 Sep 2007
Posts: 4
Location: US

PostPosted: Fri Sep 28, 2007 1:02 am
Reply with quote

Hi All,

Thanks. I was able to resolve the issue.

For your reference we can use this code to write into a file picking the jcl from skeleton.

ALLOC FI(ISPFILE) DA('<dataset name>') SHR
ISPEXEC FTOPEN
ISPEXEC FTINCL TABAUTH
ISPEXEC FTCLOSE LIBRARY(ISPFILE)
FREE FI(ISPFILE)

I found this to be the easiest way. One can avoid programming too.

Thanks.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top