View previous topic :: View next topic
|
Author |
Message |
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
HameedAli
Active User
Joined: 16 Apr 2009 Posts: 151 Location: India
|
|
|
|
Thanks to Bill and Prino
Special Thanks to Pedro, I tried your way, it was as expected.
Thank you. |
|
Back to top |
|
|
|