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

Using address linkmvs iebgener in rexx code .


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

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Thu Jul 11, 2013 5:02 pm
Reply with quote

Hi ,

I am writing a code to send email to support team .
I am using IEBGENER utility to write send this notification.
I used xmit in my rexx code first but it did not worked due to some gateway restriction.
But same when i tried in iebgener utility in jcl the notification was sent successfully.

Now want to use the same method in rexx doing linkmvs iebgener ?

If anyone can help me with the direction to refer which manual to achive this ?

My code is :
trace i
tstsrv="TCPSMTP" /* smtp address space name */
w = msg('off')
"free fi(sysin sysout sysprint sysut1 sysut2) "
w= msg('on')
"alloc fi(sysin) da(*) "
"alloc fi(sysout) da(*) "
"alloc fi(sysprint) da(*) "
"alloc fi(sysut1) da('"userid()".temp01.out') shr"
"alloc fi(sysut2) sysout (B,"tstsrv")"
parm = " "
if rc<>0 then exit
ADDRESS "LINKMVS" IEBGENER
if rc<>0 then exit
return

sysut2 ddname does not takes tstsrv value . Says extraenous information .

Code get stuck at IEBGENER Step and never gives back the control.

Corresponding jcl is

//STEP2 EXEC PGM=IEBGENER
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=AC76332.TEMP01.OUT
//SYSUT2 DD SYSOUT=(B,TCPSMTP)
//SYSIN DD *
/*

Please suggest
Regards,
Manoj K Jadwani
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Jul 11, 2013 5:21 pm
Reply with quote

Hello,

Quote:
never gives back the control.

mmm...
Can you try replacing
Code:
 "alloc fi(sysin) da(*) "

with
Code:
 "ALLOC FI(SYSIN) DUMMY          REUSE SHR "     
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 11, 2013 5:30 pm
Reply with quote

And I prefer to use the CALL instruction
Code:
"CALL *(IEBGENER)"

May I suggest that YOU learn to use the CODE tags
Code:
[code]
Put your code here
[/code]
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Sat Jul 20, 2013 8:13 pm
Reply with quote

Quote:
sysut2 ddname does not takes tstsrv value . Says extraenous information .


The ALLOC command has slightly different syntax than JCL. You need to read the TSO Command Reference manual, specifically, read out the DEST parameter.
Back to top
View user's profile Send private message
mjadwani2785

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Sat Jul 20, 2013 10:01 pm
Reply with quote

Thanks all !!
I used ISPF services and submitted JCL in batch .

But as usual I got to learn something new here about CALL funtion.

Next time for sure I will use tags .

Thanks all once again !!

Regards ,
Manoj K Jadwani
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jul 22, 2013 3:14 am
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

d
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top