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
 

 

C:D NDM - Need the out DSN to include the (yymm - 1)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
kkxlnc

New User


Joined: 12 Jun 2005
Posts: 44
Location: Boston

PostPosted: Thu May 21, 2009 2:05 pm    Post subject: C:D NDM - Need the out DSN to include the (yymm - 1)
Reply with quote

I have a specific requirement to populate the out dsn with the previous month and year while I NDM a report to a Unix Server. I know how to use the &DATE=%SUBDATE1 parameter and populate the current date but I have not been able to figure out how to populate the previous month and year.

Say, I run the job on 1st of March 09. The out DSN should have 0902 (YYMM - the month should be the previous month). It should also be able to handle the year part if its run on 1st Jan.)

SIGNON USERID=(XX) ESF=YES
SUBMIT PROC=NDMCTC -
&DSN1='user.KK.report' -
&DSN2='user.KK.report.Yyymm'
&DSN2='user.KK.report.Y0902'
SIGNOFF

The other way I can think of if writing a cobol program to create a dynamic CTC every month and then pass this ctc to the NDM JCL. But any suggestions to handle this issue directly through NDM would be very helpful.
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Thu May 21, 2009 3:59 pm    Post subject: Reply to: C:D NDM - Need the out DSN to include the (yymm -
Reply with quote

I think that writing a COBOL program might be a little bit of overkill, but yes, you'll have to use some program logic.
Back to top
View user's profile Send private message
kkxlnc

New User


Joined: 12 Jun 2005
Posts: 44
Location: Boston

PostPosted: Thu May 21, 2009 5:02 pm    Post subject:
Reply with quote

Yes, a COBOL would be an overhead to the whole process. Hence have left it as the last option if nothing else works. But I would really like to see it happening directly in the NDM job. Still trying to figure out. Any suggestions are welcome.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts Include Cond issue vickey_dw DFSORT/ICETOOL 6 Tue Mar 29, 2016 8:51 pm
No new posts Case insenstive in INCLUDE Condtion smileseenu DFSORT/ICETOOL 2 Mon Feb 15, 2016 8:42 pm


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