Author |
Message
|
praveenchhangani |
Posted: Mon Sep 23, 2002 5:21 am Post subject: Exporting FDL from Buildtime AUTOMATICALLY |
|
|
 Disciple
Joined: 20 Sep 2002 Posts: 192 Location: Chicago, IL
|
Hello Everyone,
I was wondering if there was a way to export .fdl from IBM Buildtime environment automatically without actually having to sign in physically and click on the menus.
In other words setting it up as a task in "Scheduled Tasks," is what I'm trying to accomplish here. I want my runtime and buildtime environments to be exported every night at a certain time.
It is rather easy to accomplish this with the runtime environment as we have scheduled it as a Task in Scheduled Tasks running a .bat file, however, I am not sure on how to accomplish this with the buildtime environment.
Any suggestions???
Thanks,Praveen _________________ Praveen K. Chhangani,
IBM Certified Solutions Designer -
MQ Workflow 3.4. |
|
Back to top |
|
 |
vennela |
Posted: Mon Sep 23, 2002 5:48 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
I recently came to know that there is a command line utility (thanks to John McDonald) that does import and export from the builtime.
Check these out:
fmcbcimp
fmcbcexp
---
Venny |
|
Back to top |
|
 |
jmac |
Posted: Mon Sep 23, 2002 6:11 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
The only bummer about these undocumented commands is that they will only run from a Windows environment. And of course they are undocumented which means they could be gone at any time. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
praveenchhangani |
Posted: Mon Sep 23, 2002 7:09 am Post subject: Exporting FDL from Buildtime AUTOMATICALLY |
|
|
 Disciple
Joined: 20 Sep 2002 Posts: 192 Location: Chicago, IL
|
Thanks everyone. I've tried the commands and they seem to be working. Is there however, a way in which I can export with a timestamp?
fmcbcimp
fmcbcexp
Since this is going to be a nightly thing, and we are going to be having a lot of these, having a timestamp would be very helpful.
Any ideas???
Thanks,Praveen _________________ Praveen K. Chhangani,
IBM Certified Solutions Designer -
MQ Workflow 3.4. |
|
Back to top |
|
 |
jmac |
Posted: Mon Sep 23, 2002 7:14 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Perhaps I don't understand what you want.... But this is what is at the top of every export I do using fmcibie or fmcbcexp:
/*
*
* FDL definitions generated by MQSeries Workflow at 2002-09-18, 03:22:11 PM.
*
*/ _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
praveenchhangani |
Posted: Mon Sep 23, 2002 7:19 am Post subject: Exporting FDL from Buildtime AUTOMATICALLY |
|
|
 Disciple
Joined: 20 Sep 2002 Posts: 192 Location: Chicago, IL
|
Jmac,
You are correct. What I meant was to have something like
2002-09-18, 03:22:11 PM as a file name.
eg. 2002-09-18PM.fdl
Is there a way in workflow to export .fdl with a timestamp as the name of the file itself?
Any ideas???
Thanks,Praveen _________________ Praveen K. Chhangani,
IBM Certified Solutions Designer -
MQ Workflow 3.4. |
|
Back to top |
|
 |
vennela |
Posted: Mon Sep 23, 2002 7:24 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
What I would do when I import/export from BT/RT I would name the file to be
TimeStamp.RT.EXP.fdl
TimeStamp.BT.EXP.fdl
TimeStamp.RT.IMP.fdl
TimeStamp.BT.IMP.fdl
May be you could add another prefix for PROD/TEST/DEV. This way I will get the log files too with the same name.
---
venny |
|
Back to top |
|
 |
jmac |
Posted: Mon Sep 23, 2002 7:35 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Praveen:
Workflow will only use the name of the file that you specify on the export command. You will have to use a script of some sort to generate the "Timestamp" name. This should not be very difficult.
GOOD LUCK _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
praveenchhangani |
Posted: Mon Sep 23, 2002 7:39 am Post subject: Exporting FDL from Buildtime AUTOMATICALLY |
|
|
 Disciple
Joined: 20 Sep 2002 Posts: 192 Location: Chicago, IL
|
Yes, We have a utility that can do that for us. Just checking to see if workflow had something built in.
Anyways, thanks a bunch for the creative ideas everyone!
Praveen, _________________ Praveen K. Chhangani,
IBM Certified Solutions Designer -
MQ Workflow 3.4. |
|
Back to top |
|
 |
|