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
 

 

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: 4648
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: 8593
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 0 Tue Jan 17, 2017 4:26 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 What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
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