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
 

 

Symbolic parameters in Control Card

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

Active User


Joined: 17 Nov 2009
Posts: 122
Location: India

PostPosted: Fri Feb 26, 2010 12:13 pm    Post subject: Symbolic parameters in Control Card
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: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 26, 2010 12:29 pm    Post subject:
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: 122
Location: India

PostPosted: Fri Feb 26, 2010 12:39 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 26, 2010 12:46 pm    Post subject:
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: 122
Location: India

PostPosted: Fri Feb 26, 2010 3:01 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Feb 26, 2010 3:24 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Fri Feb 26, 2010 3:26 pm    Post subject: Reply to: Symbolic parameters in Control Card
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    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 LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm
No new posts Sort Card to Remove Duplicate records... raj4neo SYNCSORT 2 Wed Jan 25, 2017 4:44 am
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


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