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...
nm992
Posts: 43
Joined: Sun Jul 11, 2010 11:31 pm
Skillset: Cobol,JCL,DB2,VSAM
Referer: Internet

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.

Robert Sample
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

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.

User avatar
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

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.

nm992
Posts: 43
Joined: Sun Jul 11, 2010 11:31 pm
Skillset: Cobol,JCL,DB2,VSAM
Referer: Internet

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.

User avatar
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

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.

Shree
Posts: 1
Joined: Wed Sep 25, 2019 2:21 pm
Skillset: Mainframes
Referer: Google

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.

NicC
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

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


  • Similar Topics
    Replies
    Views
    Last post