MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need an ALLOC statement for this

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Mon Jun 27, 2005 10:10 am    Post subject: Need an ALLOC statement for this Reply with quote

//SYSUT2 DD SYSOUT=A,DEST=(ABCF1,SMTP),FREE=CLOSE

How to convert this into an ALLOC statement in REXX code?
________
n02 vaporizer


Last edited by coolman on Sat Feb 05, 2011 1:43 am; edited 1 time in total
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Mon Jun 27, 2005 10:36 am    Post subject: Reply with quote

ALLOC is a TSO command, not REXX.

The syntax would be:
Code:

ALLOC DD(SYSUT2) DEST(ABCF1.SMTP) SYSOUT(A) REUSE
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Mon Jun 27, 2005 10:39 am    Post subject: Reply with quote

Thanks SuperK, what abt FREE=CLOSE. I asked this specifically for this, coz I didn't know where to put that
________
iolite portable vaporizer


Last edited by coolman on Sat Feb 05, 2011 1:43 am; edited 1 time in total
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Mon Jun 27, 2005 11:22 am    Post subject: Reply with quote

I have another problem in hand. I'm using File Tailoring to tailor a jcl, all of them work fine.

Code:

ADDRESS ISPEXEC                                         
"LIBDEF ISPSLIB DATASET ID('"xxxxxx.REXX"')"   
"LIBDEF ISPFILE DATASET ID('"xxxxx.REXX"')"   
"FTOPEN TEMP"                                           
SAY 'OPEN RC -> ' RC                                     
JOBNAME = 'J44'                                         
CALLNO = '001'                                           
UPDID = 'XXXX'                                           
"FTINCL TEXT"                                           
SAY 'INCL RC -> ' RC                                     
"FTCLOSE "                                               
SAY 'CLOSE RC -> ' RC                                   
"VGET (ZTEMPF) SHARED"                                   
SAY 'GET RC -> ' RC                                     
SAY ZTEMPF                                               
"EDIT DATASET('"ZTEMPF"')"                               
"LIBDEF ISPSLIB "                                       
"LIBDEF ISPFILE "                                       



Now, when doing the EDIT DATASET, I'm getting error message

DATASET NOT CATALOGED followed by the temp dataset name

Pls Advise
________
Capri


Last edited by coolman on Sat Feb 05, 2011 1:43 am; edited 1 time in total
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Jun 27, 2005 12:16 pm    Post subject: Reply with quote

use ZTEMPN as a ddname and use LMINIT/EDIT/LMFREE. Search the net for ZTEMPN for the reasons if you are interested.

I don't thik FREE=CLOSE is available via ALLOC, but if your program is short running, just free it when it is done. The need for FREE=CLOSE is pretty rare.
Back to top
View user's profile Send private message Visit poster's website
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Mon Jun 27, 2005 3:22 pm    Post subject: Reply with quote

Semigeezer,

Thanks a lot for your help. It works.
________
DR350SE
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group