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
 
How to write to a PS File in CLIST.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to write to a PS File in CLIST.
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

Moderator Team Head


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

PostPosted: Thu Sep 27, 2007 7:09 pm    Post subject: Reply to: How to write to a PS File in CLIST.
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    Post subject: Reply to: How to write to a PS File in CLIST.
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: 8631
Location: Back in jolly old England

PostPosted: Thu Sep 27, 2007 10:09 pm    Post subject:
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    Post subject: Reply to: How to write to a PS File in CLIST.
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

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