Page 1 of 1

NDM from Mainframes to UNIX environment

PostPosted: Tue Aug 02, 2011 12:36 pm
by nm992
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.

Re: NDM from Mainframes to UNIX environment

PostPosted: Tue Aug 02, 2011 4:15 pm
by Robert Sample
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.

Re: NDM from Mainframes to UNIX environment

PostPosted: Tue Aug 02, 2011 4:36 pm
by MrSpock
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

PostPosted: Tue Aug 02, 2011 5:24 pm
by nm992
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.

Re: NDM from Mainframes to UNIX environment

PostPosted: Tue Aug 02, 2011 8:16 pm
by MrSpock
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

PostPosted: Wed Sep 25, 2019 2:31 pm
by Shree
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

Re: NDM from Mainframes to UNIX environment

PostPosted: Wed Sep 25, 2019 2:40 pm
by NicC
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.