> For the complete documentation index, see [llms.txt](https://docs.editran.onesait.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.editran.onesait.com/documentacion-editran/ibm-editran-v5.3-comun-z-os/editran-sepa/llamada-a-java-en-modo-comando.md).

# Llamada a java en modo comando

Para ejecutar el java en modo comando, se utiliza el JCL de IBM JZOS:

```cobol
//******************************************************************** 
//JAVA EXEC PROC=JVMPRC60,                                             
// JAVACLS='-jar EDITRANSepaXml.jar',                                  
// ARGS='//''''FICHERO.ENTRADA.XML'''''                               
//STDENV DD *                                                          
# This is a shell script which configures                              
# any environment variables for the Java JVM.                           
# Variables must be exported to be seen by the launcher.               
. /etc/profile                                                         
export JAVA_HOME=/usr/lpp/JAVA/J6.0                                    
export PATH=/bin:"${JAVA_HOME}"/bin                                    
LIBPATH=/lib:/usr/lib:"${JAVA_HOME}"/bin                               
LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/classic                          
LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/j9vm                             
LIBPATH="$LIBPATH":"${JAVA_HOME}"/lib/s390/classic                     
LIBPATH="$LIBPATH":"${JAVA_HOME}"/lib/s390/default                     
LIBPATH="$LIBPATH":"${JAVA_HOME}"/lib/s390/j9vm                        
#LIBPATH="$LIBPATH":"${JAVA_HOME}"/lib/s390                            
#LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/classic     
export LIBPATH="$LIBPATH":                                             
# Customize your CLASSPATH here                                         
# APP_HOME=$JAVA_HOME                                                  
APP_HOME=/u/ki10628                                                    
CLASSPATH=$APP_HOME:"${JAVA_HOME}"/lib:"${JAVA_HOME}"/lib/ext          
 Add Application required jars to end of CLASSPATH                     
for i in "${APP_HOME}"/*.jar; do                                       
    CLASSPATH="$CLASSPATH":"$i"                                        
    done                                                                
export CLASSPATH="$CLASSPATH":                                         
# Set JZOS specific options                                            
# Use this variable to specify encoding for DD STDOUT and STDERR       
#export JZOS_OUTPUT_ENCODING=Cp1047                                    
# Use this variable to prevent JZOS from handling MVS operator commands
#export JZOS_ENABLE_MVS_COMMANDS=false                                 
# Use this variable to supply additional arguments to main             
#export JZOS_MAIN_ARGS=""                                              
# Configure JVM options                                                
IJO="-Xms16m -Xmx128m"                  
# Uncomment the following to aid in debugging "Class Not Found" problems
IJO="$IJO -verbose:class"                                              
# Uncomment the following if you want to run with Ascii file encoding..
#IJO="$IJO -Dfile.encoding=ISO8859-1"                                   
export IBM_JAVA_OPTIONS="$IJO "                                        
/*       
```

Si se utiliza esta opción será necesario configurar el fichero: conf/Configuracion.properties.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.editran.onesait.com/documentacion-editran/ibm-editran-v5.3-comun-z-os/editran-sepa/llamada-a-java-en-modo-comando.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
