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

Information required on TRANSMIT Command


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

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Mon Feb 15, 2010 12:05 am
Reply with quote

Hi!
I'm trying to run a XMIT step from REXX. Below is the Rexx Code.

Code:
QUEUE('//XMITFILE EXEC PGM=IKJEFT01')               
QUEUE('//SYSPRINT DD SYSOUT=*')                     
QUEUE('//SYSTSPRT DD SYSOUT=*')                     
QUEUE('//NOTES    DD *')                           
QUEUE('Hi!')                                           
QUEUE('//SYSTSIN  DD *')                           
QUEUE('XMIT QWERT.ASDFGHJK MSGDDNAME(NOTES)')   

I encounter the below error
Code:
IKJ56621I INVALID COMMAND NAME SYNTAX                         
IKJ56621I INVALID COMMAND NAME SYNTAX                         
IKJ56621I INVALID COMMAND NAME SYNTAX                         
IKJ56621I INVALID COMMAND NAME SYNTAX                         
IKJ56621I INVALID COMMAND NAME SYNTAX                         
IKJ56621I INVALID COMMAND NAME SYNTAX                         
INMX060I TRANSMIT command terminated.  Input dataset unusable +
INMX059I DDname 'NOTES' was not allocated

How do I define the DDname for Notes?
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Feb 15, 2010 12:40 am
Reply with quote

The default file format in an XMIT is PDS. Try specifying PS. But, you may want to check other XMIT parameters as well or, exit out of ISPF to the TSO Ready prompt and enter HELP XMIT and then the defaults/options will be displayed.

You may be able to obtain HELP from ISPF 6, but it's easier (at least for me) from the Ready prompt.

Then again, there's always the manual -

publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.bkma300/eox03m07253.htm

Bill
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Mon Feb 15, 2010 2:35 am
Reply with quote

Why are you queueing JCL from REXX?????

Show the full exec, because the above snippet makes absu-effing-lutely no sense.

This will work on any PO or PS dataset:

Code:
"alloc f(msgdd) da('my.messages') shr reu"

"transmit to.me da('my.dataset') " ||,
               "outdsname('my.dataset.xmit') " ||,
               "pds nolog msgddname("msgdd") nonotify sysout(*)"


Yes, even for sequential (PS) datasets you can use the keyword PDS.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Feb 15, 2010 6:27 am
Reply with quote

You are trying to combine some features of JCL with rexx... and as you have figured out, rexx does not know what to do with those '//' statements.

Perhaps you can fix your example: Allocate your NOTES dd using the TSO ALLOCATE command. And use EXECIO to write your 'Hi!' to the NOTES file. Doh, just realized Prino has an example.

An alternate form is to use the LINE($$) operand. (untested):
Code:
queue 'hi!'
queue '$$'
Address TSO 'XMIT QWERT.ASDFGHJK LINE($$)'
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Mon Feb 15, 2010 11:08 am
Reply with quote

Thanks to Bill and Prino

Special Thanks to Pedro, I tried your way, it was as expected.

Thank you.
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
Search our Forums:

Back to Top