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

Override a DSN node


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sathyaraj

New User


Joined: 28 Sep 2007
Posts: 71
Location: India.

PostPosted: Wed Mar 26, 2008 8:00 pm
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
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Mar 26, 2008 8:28 pm
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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Mar 26, 2008 8:47 pm
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: 71
Location: India.

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

Wow.. that worked out.. thnkx a ton..
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts How to append Previous date into a S... JCL & VSAM 2
No new posts AN OVERRIDE MAY NOT TARGET OVERRIDING... JCL & VSAM 1
No new posts Compare Two datasets and Override Mat... DFSORT/ICETOOL 7
No new posts proc step return code to override in ... JCL & VSAM 3
No new posts LIST NODE DIRECTORY - db2 clp - tryin... IBM Tools 1
Search our Forums:

Back to Top