Un archivo físico almacena información de forma permanente en el disco y puede ser accedido por cualquier lenguaje de programación. Consta de tres partes: nombre de registro, campos y campos claves. Para crear un archivo físico se usa el utilitario STRSEU, donde se especifican parámetros como el nombre, tipo y longitud de los campos. Una vez creado, el archivo debe compilarse para poder ingresar, modificar y eliminar registros usando comandos como UPDDTA y visualizarlos con DSPPFM o RUNQRY.
Serie de presentaciones donde realizaré una introducción sobre los conceptos, programación y características avanzadas de este potente lenguaje muy utilizado en sistemas IBM i – AS/400.
Serie de presentaciones donde realizaré una introducción sobre los conceptos, programación y características avanzadas de este potente lenguaje muy utilizado en sistemas IBM i – AS/400.
Mainframe jcl exec and dd statements part - 3janaki ram
EXEC STATEMENT(EXEC)
EXEC Statement is used to identify program name or procedure name.
Maximum we can code 255 EXEC statements in a JOB.
In EXEC statement has two kinds of parameters
Position parameter Keyword parameter
PGM TIME , COND
PROC REGION , PARM
If you not mention any thing default it takes PROC
PGM
This is a positional parameter which must be coded after EXEC with one blank. This parameter indicates the name of program (or) procedure name
Syntax
//STEPNAME EXEC PGM=REPORT (OR)
PROC = PROCEDURE NAME
PARM
It is keyword parameter and it is mainly used for passing the data to another program.
To pass input to Application program
To invoke complier option.
This is a keyword parameter at activity / step level must be coded with exec operand after PGM parameter.
This parameter allows MAX(100) characters.
To receive PARM parameter data, Cobol program must be coded with “Procedure Division Using Parameter ” option.
These parameters must be declared in the linkage section.
DATA DESCRIPTOR STATEMENT ( DD STMT)
It is used to identify files( input and output ) used in JCL
DD name act as a bridge b/w Cobol program and execution JCL
In DD statement has two kinds of parameters.
Position Parameter Keyword Parameter
* DSN,DISP
DATA SPACE,UNIT
DUMMY DCB,VOLUME
*
Position parameter at DD level used with SYSIN to pass data to Cobol programs this is known as In stream data any number of records can be passed to the program.
In stream data is used to pass values from JCL to Cobol dynamically.
To accept the values in Cobol program, we should have equivalent accept verbs.
Syntax
//SYSIN DD * ------- Entry of in stream data
100
200
/* ---------------------- End of in stream data
DATA
We can pass any thing to another program including special character
Syntax
//SYSIN DD DATA
100
/*
200
/*
DUMMY
All files are treated as End of the file
Syntax
//SYSIN DD DUMMY
NOTE
There is no input to the application all input files treated as End of the file.
DSN
Through DSN we can refer temporary / permanent file
Is a physical space or file where the records will be stored.
DISP
DISP parameter is used to identify the mode of the file.
DISP= ( STATUS, NORMAL , ABNORMAL )
TERMINATION TERMINATION
NEW DELETE DELETE
OLD KEEP KEEP
SHR CATLG CATLG
MOD UNCATLG UNCATLG
NEW Creating the data set first time
OLD Already created accessing the data set all resources are allocated exclusively . No other user can until is released by the current user. If dataset is not existing this creates.
SHR The data set can be accessed by multiple users at a time.
MOD Appending the records to the existing record
NOTE If the dataset is not existing , then MOD is assumed as NEW and writes records to the dataset.
Top jcl interview questions and answers job interview tipsjcltutorial
You'll likely be asked difficult questions during the interview. Preparing the list of likely questions in advance will help you easily transition from question to question.
This presentation is for people who want to understand how PostgreSQL shares information among processes using shared memory. Topics covered include the internal data page format, usage of the shared buffers, locking methods, and various other shared memory data structures.
Diseño y validacion GUI con java usando NetbeansEmerson Garay
Guía básica para empezar a diseñar una Interfaz Gráfica de Usuario (IGU) y la validación de los datos ingresados por el usuario, por medio del Lenguaje de programación Java y utilizando el IDE NetBeans.
This PPT File, helps with the Basic Interview Questions specially for DataBase Domain.. For more questions , please log in to www.rekruitin.com
By ReKruiTIn.com
JCL
Job Control Language (JCL) is a name for scripting languages used On IBM mainframe operating systems to instruct the system on how to run a batch job or start a subsystem.
JCL acts as an interface between application programming and MVS Operating system.
Jcl is used for compilation and execution of batch programs.
Apart from the above functionalities JCL can also be used for,
1. Controlling the jobs.
2. Create GDG’S.
3. Allocate PDS,PS file with IBM Utilities.
4. Create Procs.
5. Sort the files.
JCL Coding Sheet
1,2,3----------Column Numbers----------72,73------------80
//JOBNAME JOB PARAMETERS------COMMENTS
// EXEC
// DD
//* ------------ Comment (* in 3rd column indicates line in comment)
//------------ End of JCL
Where // ----- Identification Field
job name------- Naming field
JOB,EXEC,DD - Statement / Operation
NOTE
If we want to continue parameters in the next line end the last parameter with “,” and continue next parameter only in 4-16 columns.
There are three statements in JCL.
JOB
EXEC
DD
JOB Statement:
Job statement is used to identify job name and job related parameters
JOBCARD = job name + job related parameters.
Syntax
//JOBNAME JOB ACCOUNT INFORMATION,’USERNAME’,CLASS=A-Z/0-9,
// NOTIFY =&SYSUID/RACF ID,MSGCLASS,
// MSGLEVEL=(X,Y),PRTY=0-15,
// TIME=(M,S),REGION=MB/KB,TYPRUN=SCAN/
// HOLD/COPY,COND=(RC,OPERATOR,STEPNAME)
// COND=ONLY OR COND=EVEN,RESTART=STEPNAME
JOBNAME
It is required to identify this job from other jobs in the SPOOL
1 to 8 characters minimum 1 character and maximum is 8 character.
1st character must be alphabet.
Other characters can be alphabets or numeric or $,&,#.
Example
Job names for personal or lab sessions
Userid + 1 / 2 chars
KC03P83$ ------- Userid is KC03P83
KC03P84&--------Userid is KCO3P84
ACCOUNTING INFORMATION
It is a keyword parameter and codes it after JOB statement.
It is used for billing purpose, in real time when we submit any job it is going to take some CPU time. Based on the CPU time there will be some amount involved where this amount has to go will be decided by A/C information parameters.
Examples
(8012T)
(80121I)
(8012M)
USERNAME
It is used to identify the user who has written the JCL.
It can be maximum of 20 characters.
Note Both A/C information and user name are positional parameters and the remaining job
card parameters are keyword parameters.
EX1: //KC03P83A JOB (487A),’JANAKI RAM’
EX2: //KC03P84& JOB (488T),’SOMISETTY’
NOTIFY
To which user id the job has to be notification after successful or unsuccessful completion.
Successful completion means MAXCC = 0 (or) 04 unsuccessful completion means MAXCC > 04.
If it is not coded,then user has to check the status of the job from the spo
Dear Student,
Greetings from Etraining.guru.
We provide THE BEST DB2 LUW/UDB DBA training in the Industry by THE real time expert. Our Trainer comes with 10+ years of IT working experience on open systems of project team sizes ranging from 2 to 70+.
Course Highlights:
****************
(1) 32+ hours of course content:
http://www.etraining.guru/online-training-db2-luw-udb-dba.aspx
(2) 5 free classes on Unix & Shell scripting of topics of student's interest
(3) 10 hours of Free job support. Beyond these hours, job support is provided for a nominal charge of $10/hour
(4) Course fees: $400 for working professionals; $300 for students/job seekers
(5) Class Timing: Flexible, depending upon student's requirement
(6) Email: info@etraining.guru
Please feel free to let us know if any further details needed.
Thanks,
Bhavana
www.etraining.guru
Email:info@etraining.guru
Mainframe jcl exec and dd statements part - 3janaki ram
EXEC STATEMENT(EXEC)
EXEC Statement is used to identify program name or procedure name.
Maximum we can code 255 EXEC statements in a JOB.
In EXEC statement has two kinds of parameters
Position parameter Keyword parameter
PGM TIME , COND
PROC REGION , PARM
If you not mention any thing default it takes PROC
PGM
This is a positional parameter which must be coded after EXEC with one blank. This parameter indicates the name of program (or) procedure name
Syntax
//STEPNAME EXEC PGM=REPORT (OR)
PROC = PROCEDURE NAME
PARM
It is keyword parameter and it is mainly used for passing the data to another program.
To pass input to Application program
To invoke complier option.
This is a keyword parameter at activity / step level must be coded with exec operand after PGM parameter.
This parameter allows MAX(100) characters.
To receive PARM parameter data, Cobol program must be coded with “Procedure Division Using Parameter ” option.
These parameters must be declared in the linkage section.
DATA DESCRIPTOR STATEMENT ( DD STMT)
It is used to identify files( input and output ) used in JCL
DD name act as a bridge b/w Cobol program and execution JCL
In DD statement has two kinds of parameters.
Position Parameter Keyword Parameter
* DSN,DISP
DATA SPACE,UNIT
DUMMY DCB,VOLUME
*
Position parameter at DD level used with SYSIN to pass data to Cobol programs this is known as In stream data any number of records can be passed to the program.
In stream data is used to pass values from JCL to Cobol dynamically.
To accept the values in Cobol program, we should have equivalent accept verbs.
Syntax
//SYSIN DD * ------- Entry of in stream data
100
200
/* ---------------------- End of in stream data
DATA
We can pass any thing to another program including special character
Syntax
//SYSIN DD DATA
100
/*
200
/*
DUMMY
All files are treated as End of the file
Syntax
//SYSIN DD DUMMY
NOTE
There is no input to the application all input files treated as End of the file.
DSN
Through DSN we can refer temporary / permanent file
Is a physical space or file where the records will be stored.
DISP
DISP parameter is used to identify the mode of the file.
DISP= ( STATUS, NORMAL , ABNORMAL )
TERMINATION TERMINATION
NEW DELETE DELETE
OLD KEEP KEEP
SHR CATLG CATLG
MOD UNCATLG UNCATLG
NEW Creating the data set first time
OLD Already created accessing the data set all resources are allocated exclusively . No other user can until is released by the current user. If dataset is not existing this creates.
SHR The data set can be accessed by multiple users at a time.
MOD Appending the records to the existing record
NOTE If the dataset is not existing , then MOD is assumed as NEW and writes records to the dataset.
Top jcl interview questions and answers job interview tipsjcltutorial
You'll likely be asked difficult questions during the interview. Preparing the list of likely questions in advance will help you easily transition from question to question.
This presentation is for people who want to understand how PostgreSQL shares information among processes using shared memory. Topics covered include the internal data page format, usage of the shared buffers, locking methods, and various other shared memory data structures.
Diseño y validacion GUI con java usando NetbeansEmerson Garay
Guía básica para empezar a diseñar una Interfaz Gráfica de Usuario (IGU) y la validación de los datos ingresados por el usuario, por medio del Lenguaje de programación Java y utilizando el IDE NetBeans.
This PPT File, helps with the Basic Interview Questions specially for DataBase Domain.. For more questions , please log in to www.rekruitin.com
By ReKruiTIn.com
JCL
Job Control Language (JCL) is a name for scripting languages used On IBM mainframe operating systems to instruct the system on how to run a batch job or start a subsystem.
JCL acts as an interface between application programming and MVS Operating system.
Jcl is used for compilation and execution of batch programs.
Apart from the above functionalities JCL can also be used for,
1. Controlling the jobs.
2. Create GDG’S.
3. Allocate PDS,PS file with IBM Utilities.
4. Create Procs.
5. Sort the files.
JCL Coding Sheet
1,2,3----------Column Numbers----------72,73------------80
//JOBNAME JOB PARAMETERS------COMMENTS
// EXEC
// DD
//* ------------ Comment (* in 3rd column indicates line in comment)
//------------ End of JCL
Where // ----- Identification Field
job name------- Naming field
JOB,EXEC,DD - Statement / Operation
NOTE
If we want to continue parameters in the next line end the last parameter with “,” and continue next parameter only in 4-16 columns.
There are three statements in JCL.
JOB
EXEC
DD
JOB Statement:
Job statement is used to identify job name and job related parameters
JOBCARD = job name + job related parameters.
Syntax
//JOBNAME JOB ACCOUNT INFORMATION,’USERNAME’,CLASS=A-Z/0-9,
// NOTIFY =&SYSUID/RACF ID,MSGCLASS,
// MSGLEVEL=(X,Y),PRTY=0-15,
// TIME=(M,S),REGION=MB/KB,TYPRUN=SCAN/
// HOLD/COPY,COND=(RC,OPERATOR,STEPNAME)
// COND=ONLY OR COND=EVEN,RESTART=STEPNAME
JOBNAME
It is required to identify this job from other jobs in the SPOOL
1 to 8 characters minimum 1 character and maximum is 8 character.
1st character must be alphabet.
Other characters can be alphabets or numeric or $,&,#.
Example
Job names for personal or lab sessions
Userid + 1 / 2 chars
KC03P83$ ------- Userid is KC03P83
KC03P84&--------Userid is KCO3P84
ACCOUNTING INFORMATION
It is a keyword parameter and codes it after JOB statement.
It is used for billing purpose, in real time when we submit any job it is going to take some CPU time. Based on the CPU time there will be some amount involved where this amount has to go will be decided by A/C information parameters.
Examples
(8012T)
(80121I)
(8012M)
USERNAME
It is used to identify the user who has written the JCL.
It can be maximum of 20 characters.
Note Both A/C information and user name are positional parameters and the remaining job
card parameters are keyword parameters.
EX1: //KC03P83A JOB (487A),’JANAKI RAM’
EX2: //KC03P84& JOB (488T),’SOMISETTY’
NOTIFY
To which user id the job has to be notification after successful or unsuccessful completion.
Successful completion means MAXCC = 0 (or) 04 unsuccessful completion means MAXCC > 04.
If it is not coded,then user has to check the status of the job from the spo
Dear Student,
Greetings from Etraining.guru.
We provide THE BEST DB2 LUW/UDB DBA training in the Industry by THE real time expert. Our Trainer comes with 10+ years of IT working experience on open systems of project team sizes ranging from 2 to 70+.
Course Highlights:
****************
(1) 32+ hours of course content:
http://www.etraining.guru/online-training-db2-luw-udb-dba.aspx
(2) 5 free classes on Unix & Shell scripting of topics of student's interest
(3) 10 hours of Free job support. Beyond these hours, job support is provided for a nominal charge of $10/hour
(4) Course fees: $400 for working professionals; $300 for students/job seekers
(5) Class Timing: Flexible, depending upon student's requirement
(6) Email: info@etraining.guru
Please feel free to let us know if any further details needed.
Thanks,
Bhavana
www.etraining.guru
Email:info@etraining.guru
1. ARCHIVOS FISICOS
DEFINICION : Son aquellos que en forma permanente van almacenar información en
el disco, el cual pueden ser tomados y accesados por cualquier lenguaje de
programación bajo el entorno de AS/400.
Ellos son similares a los archivos tradicionales. Cada archivo físico contiene
únicamente un formato de registro de longitud fija. Puede tener una vía de acceso en
secuencia por claves para presentar los datos en una secuencia distinta del orden en que
se añadieron los registros.
• CREACION DE UN ARCHIVO FISICO
Para crear un archivo físico se tiene que usar el UTILITARIO STRSEU
Como se muestra en la siguiente pantalla:
Luego de escribir el Utilitario STRSEU se tendrá que pulsar [F4] y nos saldrá la
siguiente pantalla :
2. Donde:
• NOMBRE DE ARCHIVO FUENTE : Viene hacer el archivo donde vamos a
guardar el archivo físico a crear, si queremos ver los Archivos Fuentes, tenemos que
utilizar el siguiente comando:
= è WRKOBJPDM [NOMBRE DE BIBLIOTECA]
Ejemplo:
= è WRKOBJPDM D91041
Luego cuando se pulsa [Enter], saldrá la siguiente pantalla:
NOTA.- Si no existiera los Archivos Fuentes se tendrá que crearlo con el siguiente
comando.
= è CRTSRCPF [ARCHIVO FUENTE] + [ENTER]
3. NOTA : Todos los Objetos que tengan el Atributo PF-SRC vienen hacer Archivos
Fuentes .
• NOMBRE DE BIBLIOTECA : Viene hacer la Biblioteca del Perfil de Usuario.
• NOMBRE DE MIEMBRO FUENTE : Viene hacer el nombre del Archivo Físico a
crear, pro Ejemplo: TABPRO ( Tabla Producto ).
• TIPO DE FUENTE : Viene hacer el tipo del Archivo a Crear, el Tipo de Fuente para
un Archivo Físico es PF , y si fuera un Archivo Lógico seria LF.
• OPCION : Los Valores posibles Son:
*BLANK = Este es el valor por omisión si no especifica un nombre de miembro.
2 = Editar un miembro
5 = Examinar un miembro
6 = Imprimir un miembro.
• TEXTO DESCRIPTIVO : Viene hacer una descripción del Archivo a crear.
Luego de haber explicado cada parámetro, escribir lo siguiente como se muestra en la
siguiente pantalla:
4. Luego de haber escrito los parámetros se tendrá que pulsar [Enter] y nos mostrara la
pantalla de Edición, como se muestra en la siguiente pantalla:
Un Archivo Físico consta de tres partes:
5. • NOMBRE DE REGISTRO
• CAMPOS
• CAMPOS CLAVES
Para diseñar nuestro archivo físico, tenemos que Utilizar un Tipo de Hoja que es la Hoja
A y luego pulsar [F4] , y nos mostrara la siguiente pantalla:
Donde si te das cuenta a aparecido una pequeña regla de ayuda en la parte inferior de la
pantalla:
Donde:
• TIPO DE NOMBRE : Manejamos 2 tipos de Nombres
R
Teclee R para indicar un Nombre de Formato de Registro.
K
Teclee K para indicar un Nombre de Campo de Clave.
• NOMBRE : Viene hacer el Nombre de Formato de Registro, de Campo o de Campo
de Clave. La longitud máxima permitida es de 10 caracteres.
6. • LONGITUD : Viene hacer un valor para indicar el número de bytes en un campo de
tipo Carácter o el número de dígitos en un campo Numérico.
• TIPO DE DATO : Entre los tipos de datos tenemos los siguientes
S
Teclee S para indicar datos de Decimal con Zona.
A
Teclee A para indicar datos de tipo Carácter.
Si desea ver los demás tipos de datos colocar el cursor en TIPO DE DATO y pulsar
[F1]
• POSICIONES DECIMALES : Teclee un valor entre 0 y 31 para indicar el número
de posiciones decimales a la derecha de la coma decimal
• FUNCIONES : Entre las Funciones tenemos los siguientes
COLHDG
Proporciona cabeceras de columna para el campo.
COMP
Proporciona un valor de comparación (sólo para función de referencia).
DESCEND
Dispone registros desde el valor de campo de clave más alto al más pequeño.
RANGE
Proporciona un rango de valores válidos (sólo para función de referencia).
TEXT
Proporciona una descripción del registro o campo.
UNIQUE
Indica que no se permiten los valores de clave duplicados.
VALUES
Proporciona una lista de valores válidos (sólo para función de referencia).
Si desea ver las demás Funciones colocar el cursor en FUNCIONES y pulsar [F1]
7. El siguiente ejemplo muestra el diseño de un Archivo Físico con todos los parámetros
descritos anteriormente
Luego de haber codificado la estructura del Archivo físico se procederá a grabar el
archivo con una Opción de Comando que es el FILE , como se muestra en la siguiente
pantalla:
8. Luego se procederá a pulsar [Enter] y llegaremos al menú principal.
Luego cuando estemos en el menú principal tenemos que proceder a buscar nuestro
Archivo Físico con el Siguiente comando:
9. == è WRKMBRPDM [ARCHIVO FUENTE DONDE SE GUARDO EL
ARCHIVO]
Ejemplo:
== è WRKMBRPDM QDDSSRC
Luego cuando pulsamos [Enter] nos mostrara la siguiente Pantalla
Luego se procederá a C ompilar el Archivo para que se pueda crear un Objeto donde
se tendrá que utilizar los mandatos de Archivos Físicos para ingresar, modificar,
eliminar o visualizar los datos del Archivo.
La Opción de compilación es muy importante porque si no se compila el archivo
no se podrá trabajar con los registros del archivo
Para Compilar un Archivo se Utilizara la Opción 14, y luego se presionara [Enter] ,
donde nos mostrara la siguiente pantalla.
10. Luego se presiona [Enter], y de ahí se tendrá que utilizar los mandatos de Archivos que
son los siguientes:
• Permite Ingresar, Modificar, Eliminar Registros al Archivo
= è UPDDTA [ARCHIVO FISICO]
Ejemplo:
= è UPDDTA TABPRO
Luego cuando se presiona [ENTER] , nos saldrá la siguiente pantalla. [Figura 1.]
Donde ingresaremos los datos a la Tabla, luego de haber ingresado todos los datos se
presionara [Enter] , para así poder ingresar un registro nuevo, ahora cuando ya no
quieras seguir ingresando información al Archivo solo tienes que presionar [F3] , y
presionar [Enter]. [Figura 2.]
Figura 1 .
11. Figura 2 .
Ahora cuando quieras modificar un registro tendrás que utilizar el mismo comando.
12. Ejemplo:
= è UPDDTA TABPRO
Luego cuando se presiona [ENTER] , nos saldrá la siguiente pantalla.
Si te das cuenta la Modalidad esta como CAMBIO [Figura 3.] , como no paso cuando
ingresaste recién los datos al archivo, allí la Modalidad estaba como ENTRADA
[Figura 1.] , esto quiere decir que el archivo esta preparado para ser modificado, solo
tienes que avanzar de pagina [AV.PAG] , y buscar el registro a modificar, luego de
haberlo encontrado modificalo y presiona [Enter] , para así poder Actualizarlo , luego
si deseas salir solo pulsas [F3] y [ENTER], [Figura 4.]
Figura 3.
Figura 4.
13. Ahora cuando quieras Eliminar un registro tendrás que utilizar el mismo comando.
Ejemplo:
= è UPDDTA TABPRO
Luego cuando se presiona [ENTER] , nos saldrá la siguiente pantalla.
Si te das cuenta la Modalidad esta como CAMBIO [Figura 3.] , ahora solo tienes que
avanzar de pagina [AV.PAG] , y buscar el registro a Eliminar , luego de haberlo
encontrado solo Pulsa [F23] dos veces y presiona [Enter] , para así poder Eliminarlo ,
y fíjate que en la parte inferior debe salir un mensaje se ha suprimido el registro
solicitado luego si deseas salir solo pulsas [F3] y [ENTER], [Figura 5.]
Figura 5.
14. • Visualiza todos los registros del Archivo sin Estructura
= è DSPPFM [ARCHIVO FISICO]
Ejemplo:
= è DSPPFM TABPRO
Luego cuando se presiona [ENTER] , nos saldrá la siguiente pantalla.
NOTA.- La visualización de los datos es sin estructura, solo se esta mostrando los datos
15. • Visualiza todos los registros del Archivo con Estructura
=> RUNQRY *N [ARCHIVO FISICO]
Ejemplo:
= > RUNQRY *N TABPRO
Luego cuando se presiona [ENTER] , nos saldrá la siguiente pantalla.
NOTA.- La visualización de los datos es con estructura.
16. Si quieres ver los demás campos solo tienes que pulsar [F20] Derecha o [F19]
Izquierda.
Espero que este manual pueda ayudarte.
Autor . Ing. Alberto Moreno C.