How to run a build with DB2 Bind RTCz
I am trying to do a build with a step tp bind to DB2 table, as the program access DB2 table.
I configured the build definition ,and when I run the build it gives me an error trying to find the IKJEFT01 program ( this is to ru the DB2 Bind in TSO Environment ), I know the build agent are having problems because if I specify the Loadlib name ( SYS1.LPALIB) it fins the program (IKJEFT01) but this gives Abend 047 ( expected in this case ) ,because the SYS1.lpalib should not require to define the LOADLIB. Plase can you help? |
Accepted answer
Jorge, it sounds like you need to customize your ISPF bin path, as described in the help here. Set the
team.enterprise.build.ant.myISPFBinPath
build property (or
teamz.build.ant.myISPFBinPath
in V3.x) to point to a directory containing a custom
ISPZXENV
with an entry such as the following for STEPLIB:
Jorge Nagasaki selected this answer as the correct answer
Comments
Jorge Nagasaki
commented Sep 01 '12, 2:30 a.m.
Hi Robin. I tested with your suggestions , and it worked Great ! now I was able to run the Bind succssfully with the build . Thank you very much |
11 other answers
I see the problem... You can add the macro definition in your build.xml file. Even though RTCz stores atuomatically generated macro definitions in the macrodefs.xml file, macors do not have to be defined in that file. The REXX used in the sample is something like
Tami |
GREAT!!!! In Ant, tasks defined outside of any targets will be executed at first. I will attach the full-source of the build script I used below. In the script, there is the db2bind target and it is executed after the linkedit target (please see the "all" target).
|
I have now specified just the Program name ( wihtou the Loadlib name), and for some reason nw it looks like is finding the IKJEFT01 program , but I am getting ABEND047.. that means not authorized .
But if I run a standard JOB with JCL it works fine.. may be the buid agent uses some kind of steplib internally ? |
I have now specified just the Program name ( wihtou the Loadlib name), and for some reason nw it looks like is finding the IKJEFT01 program , but I am getting ABEND047.. that means not authorized . IKJEFT01 is a special module for executing TSO command from JCL. Because RTCz Ant build invokes translator modules dynamically from Java, which is not an authorized program, without using JCL and cannot use IKJEFT01. DB2 BIND can be invoked from REXX EXEC, however, you cannot specify REXX EXEC as a translator on RTCz V2. One possible workaround is to define your own Ant task to invoke REXX EXEC from RTCz Ant build script. An example of such Ant task is shown in the article: http://www.ibm.com/developerworks/rational/library/10/part4usingibmrationalteamconcertforsystemzandthejazzplatform/index.html Let us know if you have further questions on this. Tami |
I see the problem...
Now I read the article, and have some questions on the DB2 bind package macro definition ( Listing 2). Do I have to include this peace of macro definition in the build.xml ? may be at the end? Do you have a sample of the REXX used int this macro ('TAMI.JAZZ.EXEC(PACKBIND)' ) ? |
GREAT!!!!
Bind works fine now... Sorry if this question is very basic, but now I am trying to execute this Bind After the Compilation and could not figure out how the build chooses the order in which the commands in build file are executed. I tried to put at the botton of the build.xml but it executes the bind before compilation.. this for sure is a problem. hints? |
Hi Tami,
Now I see. Thanks this works for me. :) |
Hi , I am trying to implement this in another system (z/OS) and I am struggling with a problem during the execution of the REXX program. I am getting errors that says command/program DSN was not found . this also occurrs for the BIND. I have the experience with bind using a batch Job, and I normally fix it by adding a steplib to the DB2 loadlibs ( for example DSN91.SDSNLOAD ) and this work well for batch jobs. But for this REXX programs running on RTC builds does not work at all.. I tried to add an ALLOC command in the REXX program but it says STEPLIB is a restricted name for use in this environment and it fails. Does anybody knows how we could fix this?
|
thanks.. I am in travel, now. But I will be back on this weekend , and will test your suggestion.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.