Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Override a DSN node

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics
Author Message
sathyaraj

New User


Joined: 28 Sep 2007
Posts: 34
Location: Tamilnadu,India.

PostPosted: Wed Mar 26, 2008 8:00 pm    Post subject: Override a DSN node
Reply with quote

Hi,

My code is


Code:

// SET &YDATE=D080808                                     
//EMAIL    EXEC PGM=IKJEFT01,REGION=0M                   
//SYSPROC  DD DSN=SYSUSER.TSO.COMMON.CLIST,               
//            DISP=SHR                                   
//SYSTSPRT DD SYSOUT=*                                   
//SYSUDUMP DD SYSOUT=*                                   
/*                                                       
//SYSTSIN  DD *                                           
  %XMITIP SATHYARAJ.BALASUBRAMANIAN@....COM -       
  FROM ABC123@....COM -                                   
  SUBJECT 'ATTENTION:  CHANGE DETECTED TO LEGEND FILE ' -
  MSGT 'F5748TGH.TSUA8PK.LEGEND.ERRREP.&YDATE'           
/*                                                       


I am not able to overide the date in such a way.. Is there some other way to do it....?
Back to top
View user's profile Send private message
References
PostPosted: Wed Mar 26, 2008 8:00 pm    Post subject: Re: Override a DSN node Reply with quote

Moved: Wed Mar 26, 2008 8:06 pm by superk From JCL to Other Mainframe Topics
Devzee

Senior Member


Joined: 20 Jan 2007
Posts: 715
Location: Hollywood

PostPosted: Wed Mar 26, 2008 8:28 pm    Post subject:
Reply with quote

With your approach you cannot override it.

Instead you need to make it two steps.
1. create the content of email with your date
2. do the email step
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 2906
Location: Charlotte,NC USA

PostPosted: Wed Mar 26, 2008 8:47 pm    Post subject: Reply to: Override a DSN node
Reply with quote

Something like this may work:

Code:

// SET YDATE=D080808                                     
//*
//EMAIL    EXEC PGM=IKJEFT01,REGION=0M,PARM='%MYEXEC &YDATE'
//SYSPROC  DD DSN=SYSUSER.TSO.COMMON.CLIST,               
//            DISP=SHR                                   
//SYSTSPRT DD SYSOUT=*                                                   
//SYSTSIN  DD DUMMY


where 'SYSUSER.TSO.COMMON.CLIST(MYEXEC)' looks like this:

Code:

/* REXX */                                                   
Parse Arg ydate .                                         
"%XMITIP SATHYARAJ.BALASUBRAMANIAN@....COM -",               
  "FROM ABC123@....COM -",                                   
  "SUBJECT 'ATTENTION:  CHANGE DETECTED TO LEGEND FILE ' -",
  "MSGT 'F5748TGH.TSUA8PK.LEGEND.ERRREP."ydate"'"         
Exit 0                                                       
Back to top
View user's profile Send private message
sathyaraj

New User


Joined: 28 Sep 2007
Posts: 34
Location: Tamilnadu,India.

PostPosted: Fri Mar 28, 2008 8:38 pm    Post subject:
Reply with quote

Wow.. that worked out.. thnkx a ton..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1