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
 

 

DATE AND TIME FOR NDM'ing THE FILE

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

New User


Joined: 25 Aug 2008
Posts: 1
Location: pune

PostPosted: Thu Jan 21, 2010 2:42 pm    Post subject: DATE AND TIME FOR NDM'ing THE FILE
Reply with quote

I am NDM ing the file as
XXXX.YYYY.ZZZZ.F.2010021.015656

I need to NDM the file as
XXXX.YYYY.ZZZZ.F.D2010021.T015656.

Please help me out to get the desired file name. My DMBATCH JCL input looks like:
Code:

  SIGNON ESF=YES                                                       
  SUBMIT PROC=MVS2UNX2 &SNODE=TCPNAME=VVVVVV.TEST.NMN.COM -           
           SNODE=&SNODE                               -             
           HOLD=NO                                    -             
           &NODE=PNODE                         -                     
           &NDMID=AB345R                       -                     
           &JDATE=%JDATE                         -                   
           &TIME=%SUBTIME                       -                   
           &DSN1=XXXXX.DSDS.RRRRRR.T(+0)        -                   
           &DSN2=XXXXX.DSDS.RRRRRR.T.&JDATE..&TIME        -         
           &DIR2=.                               -                   
           &DISP2=NEW                           -                   
           &COMPRESS=COMPRESS                   -                   
           &PAGEID=AB345R                                           
  SIGNOFF
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Thu Jan 21, 2010 6:57 pm    Post subject: Reply to: DATE AND TIME FOR NDM'ing THE FILE
Reply with quote

Could you please post:

The output from your NDMCMDS DD statement that shows how your job and the DMBATCH program has performed the variable substitutions as you've indicated.

The code of your MVS2UNX2 Process that also shows how it performs the variable substitutions as you've indicated.
Back to top
View user's profile Send private message
tjk3030

New User


Joined: 18 Mar 2006
Posts: 22

PostPosted: Sat Jan 23, 2010 10:13 am    Post subject:
Reply with quote

How about this in your process statement:

&DATE=%SUBDATE1
&TIME=%SUBTIME

COPY1 COPY FROM (PNODE DSN=&DSN1 DISP=SHR) -
COMPRESS EXTENDED -
TO (SNODE DSN=&DSN2 || D || &DATE || _T || &TIME || .DAT -
DISP=NEW -
SYSOPTS="DATATYPE(TEXT) STRIP.BLANKS(NO)")
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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 2 Thu Jan 19, 2017 1:31 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm


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