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

Symbolic parameters in Control Card


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

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Fri Feb 26, 2010 12:13 pm
Reply with quote

We have a requirement of appending current date at the end of the file that is being NDM'ed. Need suggestions to do so.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Feb 26, 2010 12:29 pm
Reply with quote

Your title and question do not match up.

Do you want to create a file with a date suffix, a control statement with a date suffix, both, neither.

Please explain clearly what it is that you want.

Either way, the topic has been discussed enough times for you to use the search facility.
Back to top
View user's profile Send private message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Fri Feb 26, 2010 12:39 pm
Reply with quote

Date to be suffixed at the end of the target file in the format CCYY-MM-DD.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Feb 26, 2010 12:46 pm
Reply with quote

Please explain clearly what it is that you want.

Start from the beginning and put some detail in the request.
Something like ............................ if I understand correctly

A file is created by one of our batch jobs which is then transferred to another location.

At the second location the file needs to be renamed to its original name with a date suffixed.

I am using NDM to perform the transfer and wish to know if it is possible to automatically update the control statements to do this rather than a manual task.

And if I am correct ........................
expat wrote:
the topic has been discussed enough times for you to use the search facility.
Back to top
View user's profile Send private message
Susanta

Active User


Joined: 17 Nov 2009
Posts: 126
Location: India

PostPosted: Fri Feb 26, 2010 3:01 pm
Reply with quote

A file is created by one of our batch jobs which is then transferred to another location.
While transferring the target file name needs to be appended with current date in format YYYY-MM-DD.
I am using NDM to perform the transfer and wish to know if it is possible to automatically update the control statements to do this rather than a manual task.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Feb 26, 2010 3:24 pm
Reply with quote

%JDATE function appends the date in YYYYDDD format, if you need date in some other format, as you've asked, you cannot substring these parms, as they are evaluated at submit time. Looks like "the value" will have to be supplied from outside the process as a variable. There are some other functions, but off-hand, not very sure.

As expat has said, search the forum on "EZACFSM1" it may give you couple of hints to start with what you're looking for.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Feb 26, 2010 3:26 pm
Reply with quote

The Connect:Direct Process language allows you to specify pre-defined variables for current system date and time values. I know that one is the date in YYYYMMDD format (without the dashes).

It's unknown at this point know what you want YYYY-MM-DD to represent (system date, file date, processing date, cycle date, etc.).

Outside of that, you can certainly have a prior job step generate a proper date value in the manner you need, and then of course that data can be passed into your Connect:Direct batch input parameters. As has already been stated, there are many, many topics that deal with doing this, so you should certainly be able to find a method that works for you.
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 JCL sort card - get first day and las... JCL & VSAM 9
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Need suggestion on a sort card DFSORT/ICETOOL 10
Search our Forums:

Back to Top