Hi..
I need to send file on daily basis from Mainframes to Unix Environment.UNIX side file needs to be of the format
**/**/*_yyyymmdd.
Can anyone help me on how to generate the date on dialy basis in teh connect direct step so as to we put up the current date at the end of UNIX file on daily basis.
NDM from Mainframes to UNIX environment
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: NDM from Mainframes to UNIX environment
1. Most job schedulers allow you to do this type of thing, so use the job scheduler.
2. OR you could write a small program, in the language of your choice, to generate the file name and run it as part of your job.
3. OR you could download to a fixed file name on the Unix system and use CRON on the Unix system to schedule a small script to execute every day to move (or copy) the fixed file name to the file name with the date.
2. OR you could write a small program, in the language of your choice, to generate the file name and run it as part of your job.
3. OR you could download to a fixed file name on the Unix system and use CRON on the Unix system to schedule a small script to execute every day to move (or copy) the fixed file name to the file name with the date.
- MrSpock
- Global moderator
- Posts: 809
- Joined: Wed Jun 06, 2007 9:37 pm
- Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
- Referer: ibmmainframes.com
- Location: Raleigh NC USA
- Contact:
Re: NDM from Mainframes to UNIX environment
You could use the built-in intrinsic symbolic variable %SUBDATE1:
%SUBDATE1 Use this parameter to substitute the submitted date in the yyyymmdd date format.
Re: NDM from Mainframes to UNIX environment
Hi..Thanks..
I have used the scheduler to the same on another system...I used Fileaid also which was replacing character with the current date at particualr column..and date was picked by scheduler..
Any idea on if we can do te same thing with Sort Card.
I have used the scheduler to the same on another system...I used Fileaid also which was replacing character with the current date at particualr column..and date was picked by scheduler..
Any idea on if we can do te same thing with Sort Card.
- MrSpock
- Global moderator
- Posts: 809
- Joined: Wed Jun 06, 2007 9:37 pm
- Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
- Referer: ibmmainframes.com
- Location: Raleigh NC USA
- Contact:
Re: NDM from Mainframes to UNIX environment
nm992 wrote:Any idea on if we can do te same thing with Sort Card.
Please start a new topic in the appropriate sort forum for your installed product. it will save time if you provide all of the usual relevant details, such as sample input and output data, LRECL and RECFM details, product and level installed, etc.
NDM from Mainframes to windows environment with year & month
Can anyone help me out how to append previous month and current year as suffix in the file name using NDM card.
CURDT = YYMMDD
DATADT = YYYYMO -- where MO is the previous month
CURDT = YYMMDD
DATADT = YYYYMO -- where MO is the previous month
You do not have the required permissions to view the files attached to this post.
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: NDM from Mainframes to UNIX environment
Locked.
1 - Do not tailgate other eoples topics.
2 - Do not resurrect old topics
3 - read the rules
4 - please do not post screenshots - a simple cut and paste and using the code tags will do.
1 - Do not tailgate other eoples topics.
2 - Do not resurrect old topics
3 - read the rules
4 - please do not post screenshots - a simple cut and paste and using the code tags will do.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Creating Unix Directory using COBOL in Unix 0n Z/OS
by Heisenberg » Mon Jun 26, 2023 4:36 pm » in IBM Cobol - 2
- 3014
-
by Robert Sample
View the latest post
Wed Jul 05, 2023 6:36 pm
-
-
- 6
- 2918
-
by willy jensen
View the latest post
Mon Aug 21, 2023 4:56 pm
-
- 5
- 1822
-
by macuko
View the latest post
Tue Jun 27, 2023 8:24 pm
-
- 1
- 2874
-
by Robert Sample
View the latest post
Sun Feb 20, 2022 8:04 pm
-
-
Calling Java program on UNIX/USS from a COBOL CICS program?
by zbius » Tue Nov 05, 2024 2:37 pm » in IBM Cobol - 2
- 2549
-
by zbius
View the latest post
Wed Nov 06, 2024 6:02 pm
-