Can you override a command parameters in Control-M when ordering a job? For example, the command parameters -s %%YYYY-%%MM-%%DD. -e %%YYYY-%%MM-%%DD. will give me the dates output as s 2022-04-12 e 2022-04-12.
Is there a way I can override this command using variables when ordering the job if I want to get the data for s 2022-03-01 e 2022-03-31.
I do not necessarily want to change the command script, only overriding it in the variable section when ordering the job for dates s 2022-03-01 e 2022-03-31.
Control-M overriding command script
206 Views Asked by Bond At
1
There are 1 best solutions below
Related Questions in UNIX
- Reading & Writing to the same file from terminal
- `df` command not capturing entire output in perl
- Why is it that when I pass certain directory names to `ls`, sometimes it does not list their contents?
- Detect Mouse Clicks; Terminate Program on Scroll Wheel Movement
- grep expression behaving weird (unix/mac) while reading a conf file
- Unix sub path creation and copy files
- Ignoring folders in The Silver Searcher `ag`
- struct nameidata-Linux Kernel Module
- telegraf service not able to retrieve data using the journalctl commands
- Order of options in Unix sed for editing files in-place
- Trying to echo line variable along with another variable inside a while read loop
- failed to handshake with xxx: authentication error?
- UDP socket client not able to receive data
- Invalid SCA token in unix
- How can I keep randomized UNIX timestamp in specific hour range in SQL?
Related Questions in CONTROL-M
- How to use configuration environment files with ctm.yaml in control-m
- Automate Control-M to run job using Selenium Java
- How to establish a connection between 2 folders in different workspaces in Control-M?
- Control-M Swagger UI API: Is there any API to fetch the history of a job?
- How to reuse control M jobs and workspace for different environments
- Can I add a day to control-m based on the current system time?
- How to trigger a MWAA dag from python script or from control-m job?
- Control M schedule change
- Dynamic Job Definitions using Control M REST API (Version 9.0.19)
- How to trigger a unix job on EC2 instance from AWS Eventbridge?
- If control m is calling a database job what nls_date_format the session use
- powershell - SSIS send mailmessage to multiple recipents
- Sequencing of on do actions
- Is there a way to use on-do actions to remove the In Condition before rerunning a Control-M job in version 9?
- Ctrl-M powershell script not reading SQL correctly
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Well the variables called are usually the variables you want. However, if I understand the aim of the question, you should be aware that the variables listed in the variable section of the job def are sequential.
For example, if you keep all the variables as local in these fields and query today's date in the first one then you can manipulate as required -
%%my_date=%%CALCDATE %%DATE -1
then my_date is whatever you want.