Take the easy (?) way: modularize the program so that the business logic is in one module, invoked by dynamic CALL from either a batch wrapper or a CICS wrapper. This means the business logic doesn't need to worry about the environment, and also makes the business logic more portable: for example if you want to later invoke it from a CICS HTTP application, or from a calling program invoked in a servlet or something.
Tim Hare Senior Systems Programmer Florida Department of Transportation (850) 414-4209 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html