View previous topic :: View next topic
|
Author |
Message |
GSaikrishna
New User
Joined: 24 May 2008 Posts: 13 Location: India
|
|
|
|
Hi all,
I have an input dataset which is is GDG.
I have to NDM the file from one LPAR to other LPAR.
And the output dataset name is dynamic and depends on input dataset content.
O/p dataset name is XXX.SEEEE.DATE.TIME
XXX- application qualifier
EEEE - entry which is unique for every file and is present in input GDG
Header of input file ( 1 to 4 ) is the entry number.
I was able to generate date and time from system variables.
Only requirment is I need to generate entry number from input dataset to output file name when ever i am NDM the file.
Could this be done in JCL ? if not can some one suggest me with examples how to do it
Thanks,Sai |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
No - it cannot be done in JCL. You can do it using JCL to specify a program to run that will fo it for you. This question is asked so many times that I am surprised that you did not get a hit when you searched the forum. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Have you decided on which way you want do to this?
If you are stuck, post where you are having problems/doubts and someone should be able to clarify. |
|
Back to top |
|
|
GSaikrishna
New User
Joined: 24 May 2008 Posts: 13 Location: India
|
|
|
|
Thanks for the replies.
I am still thinking how to proceed.
I can create an easytrieve program and create the output file name.
Example
OUtputdataset has a record with XXX.SEEEE.DATE.TIME which i overirde every time my job runs.
Now how can I pass this record to NDM parm as OUTDSN value. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
One way would be to generate the entire NDM PROC with everything resolved and use this for the transfer. |
|
Back to top |
|
|
GSaikrishna
New User
Joined: 24 May 2008 Posts: 13 Location: India
|
|
|
|
Thanks Dick.
I was able to generate whole NDM parm with my program and used it for transfer.
Thanks a lot |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - good to hear it is working and thank you for letting us know
d |
|
Back to top |
|
|
|