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
 

 

Information required on TRANSMIT Command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Information required on TRANSMIT Command
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Feb 15, 2010 12:40 am    Post subject: Reply to: Information required on TRANSMIT Command
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 -

http://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

Active Member


Joined: 07 Feb 2009
Posts: 989
Location: Oostende, Belgium

PostPosted: Mon Feb 15, 2010 2:35 am    Post subject:
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

Senior Member


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

PostPosted: Mon Feb 15, 2010 6:27 am    Post subject: Reply to: Information required on TRANSMIT Command
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    Post subject: Reply to: Information required on TRANSMIT Command
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    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 Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts Obtaining file information pahiker COBOL Programming 25 Tue Sep 27, 2016 7:25 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us