NDM from Mainframes to UNIX environment



Ask queries about other IBM Tools like Tivoli, COBTEST, Fault Analyzer, z/OS File Manager, Workload Simulator, APA, SCLM, Merge & Migration Tools etc...

NDM from Mainframes to UNIX environment

Postby nm992 » Tue Aug 02, 2011 12:36 pm

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.
nm992
 
Posts: 43
Joined: Sun Jul 11, 2010 11:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: NDM from Mainframes to UNIX environment

Postby Robert Sample » Tue Aug 02, 2011 4:15 pm

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: NDM from Mainframes to UNIX environment

Postby MrSpock » Tue Aug 02, 2011 4:36 pm

You could use the built-in intrinsic symbolic variable %SUBDATE1:

%SUBDATE1 Use this parameter to substitute the submitted date in the yyyymmdd date format.
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: NDM from Mainframes to UNIX environment

Postby nm992 » Tue Aug 02, 2011 5:24 pm

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.
nm992
 
Posts: 43
Joined: Sun Jul 11, 2010 11:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: NDM from Mainframes to UNIX environment

Postby MrSpock » Tue Aug 02, 2011 8:16 pm

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.
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

NDM from Mainframes to windows environment with year & month

Postby Shree » Wed Sep 25, 2019 2:31 pm

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
You do not have the required permissions to view the files attached to this post.
Shree
 
Posts: 1
Joined: Wed Sep 25, 2019 2:21 pm
Has thanked: 0 time
Been thanked: 0 time

Re: NDM from Mainframes to UNIX environment

Postby NicC » Wed Sep 25, 2019 2:40 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to Other IBM Tools

 


  • Related topics
    Replies
    Views
    Last post