Documente Academic
Documente Profesional
Documente Cultură
Few examples:
Below %%BB is resolved to 5PM on current system date
%%AA= %%$CALCDATE %%$DATE
%%BB= %%AA.1700
AutoEdit functions
%%CALCDATEAdds or subtracts a specified number of days from a specified date.
%%A=%%CALCDATE %%DATE -1
%%A=%%CALCDATE 121001 -%%DAY
%%A=%%CALCDATE 120929 +1
Syntax:
%%SUBSTR variable start_position length
OS environment variables
MFBSI maintains a single variables pool. All variables are managed the same way in this pool. The
MFBSI variable pool does not contain OS environment variables, except for system scheduling dates.
See the topic on resolving original scheduling system date variables for more information.
The variables are searched in this order:
OS environment variables
Variable names are case insensitive. Variable values can have a maximum 80 character length.
Parent topic: Enabling Control-M AutoEdit Use
$CENT $OCENT
PARMS ODATE=%%ODATE [CENT=%%CENT] may also be used in the MFBSIJCL command line to
set %%ODATE and %%CENT.
When MFBSIJCL starts execution, it retrieves ODATE and CENT OS environment variable values.
These are saved in the MFBSI symbols pool to
resolve%%ODATE, %%ODAY, %%OMONTH and %%OYEAR found in the JCL member to be
executed. Based on the values of these variables, additional Control-M AutoEdit variables are evaluated
and stored in MFBSI symbols pool:
$OYEAR [CCYY]
$ODATE [CCYYMMDD]
$OCENT [CC]
AutoEditFunction
%%SET %%A=1
%%SET %%B=2
%%SET %%A2=100
Statement/Expression Resolves as...
// TAPE=TAPE100,
// TAPE=TAPE%%A%%B, // TAPE=TAPE1.2,
// TAPE=TAPE%%A.%%B, // PARM=PRM12,
// PARM=PRM%%A%%.%%B, // PARM=PRM1.2,
// PARM=PRM%%A%%..%%B, // PARM=1 2,
// PARM='%%A%%%BLANK3%%B', //DDN DD DSN=HLQ.DATASET.A12,
//DDN DD DSN=HLQ.DATASET.A%%A.%%B, //DDN DD DSN=HLQ.DATASET.A1.2,
//DDN DD DSN=HLQ.DATASET.A%%A..%%B, //DDN DD DSN=HLQ.DATASET.A1.2,
//DDN DD DSN=HLQ.DATASET.A%%A%%..%%B, //DDN DD DSN=HLQ.DATASET.A100,
//DDN DD DSN=HLQ.DATASET.A%%A%%B,
This example shows resolution of date functions in the %%SET control statement.
// UNIT=TAPE,VOL=SER=TAPE%%TAPE_01, // UNIT=TAPE,VOL=SER=TAPE01,
// UNIT=TAPE,VOL=SER=%%TAPE%%OMONTH, // UNIT=TAPE,VOL=SER=EE100007,
Parent topic: Enabling Control-M AutoEdit Use
Each record specifies the parameter name and the associated value.
def="ABC DEF"
Group = XYZ
Parm2 = "'123 567'"
The environment variable DAGLOBAL specifies the folder for the text file(s) used by %%GLOBAL. In a
similar way, for %%LIBSYM members, the folder name is extracted from an environment variable or from
the catalog.
This example shows resolution of %%GLOBAL and %%LIBSYM control statements:
Statement/Expression Resolves As
When MFBSI detects an AutoEdit error, it inserts an error message in the JCL just before the statement
in error. The error message text starts with //* ??? JCLSI0050E. The end of the message displays
the number of the original JCL line.
For example:
1 //MFIDPS01 JOB 'MFIDPS',CLASS=A,MSGCLASS=1
2 //* %%GLOBAL GLOBAL01
3 //* %%LIBSYM MFIDPS.CTRLM.SYMB %%MEMSYM SYMMBR01
4 //* %%SET %%SYMBMBR=SYMMBR01
5 //* %%LIBSYM MFIDPS.CTRLM.SYMB %%MEMSYM %%SYMBMBR
6 //*
7 //STEP1 EXEC PGM=IEFBR14
8 //SYSOUT DD SYSOUT=*
9 //*??? JCLSI0050E For "DAGLOBAL(NOTFOUND)" file open error: 9/009. (9)
10 //* %%GLOBAL NOTFOUND << JCLin
11 //*
In case of AutoEdit error(s), MFBSI generates a bad JCL statement at the end of the JCL to abort the
submitted job.
21 //*
22 // ***** MFBSI GENERATED JCL ERROR (AUTOEDIT FACILITY ERROR) *****
**** JCLCM0409E INVALID OPERATOR
23 //
**** JCLCM0172E JOB FAILED - JCL ERROR
If this happens, the Control-M AutoEdit facility receives a get RC=208 message.
The submitted JCL can be found in the $MFBSI_DIR\JCLTemp folder.
Parent topic: Enabling Control-M AutoEdit Use
http://documentation.microfocus.com/help/index.jsp?topic=%2Fcom.microfocus.eclipse.infocent
er.studee60ux%2FGUID-385EDA67-B4F2-4BD7-9DA7-2788EC80CF5F.html
te quejes, no esperes a ver que puede la informatica hacer por ti, si no que puedes
hacer tu con la informatica.
alfrcort
Usuario
Mensajes: 21
Pas: espaa
Ciudad: madrid
A
r
r
i
b
a
hola rulas
aqui te dejo la lista de variables de fecha de control-m, no se cual se utlize para calcular lo que
necesitas y espero que te sirva de algo
por cierto mi perfil dice que estoy en espaa, ahora estoy en mexico.
--------------------------------------------------------------------------------------------------
tomado del manual de control-m de banco BSCH (Banco Santander Central Hispano)
10.5.5 %%CALCDATE.
Puede calcular fechas a partir de una fecha dada. Su formato ser:
%%CALCDATE fecha +/- una_cantidad
donde la fecha estar en formato en YYMMDD y la cantidad estar dentro del rango 1- 65.
Ejemplo.
%%SET %%FECHA-AYER = %%CALDATE %%ODATE - 1
cuyo resultado ser para el 1 de junio de 1992
%%SET %%FECHA-AYER = 920530
La sentencia %%CALCDATE debe incluirse como parte de la sentencia %%SET
no te quejes, no esperes a ver que puede la informatica hacer por ti, si no que puedes hacer tu con la
informatica.
alfrcort
Usuario
Mensajes: 21
Pas: espaa
Ciudad: madrid
Men
Perso
nal
Bienve
nido DinoLand - Foros informticos en espaol
Invita
do Area para los "compu" sapiens que desean aprender y ayudar a otros.
U
s Obviar
er
: Buscar Buscar
P Bsqueda avanzada
a
ss
: ndice general MVS - OS/390 - z/OS Control de versiones
Ingre
sar
auto Cambiar tamao de la fuente
mtic
amen
te: Imprimir vista
FAQ
Login
Registrarte
Regis
trart Identificarte
e!
Olvid calculo de fechas por CONTROL-M
mi Publicar una respuesta
clave
Re
Buscar este tema Buscar
envia
r
email 5 mensajes Pgina 1 de 1
de
activ
acin calculo de fechas por CONTROL-M
Hola,
Comu
nique
se Tengo que calcular por medio de Control-M, algunas fechas, por ejemplo, corro con
con:
un odate del 2011-04-03, necesito calcular el primer dia habil del mes
Webmas anterior(20011-03-??) y el ultimo dia habil del mes anterior (2011-03-??)...alguien
ter
tendra como se resuelven estas fechas.... gracias por su ayuda...
rulas2009
Bsq
ueda Usuario
Desca
rgas
Foro
Mensajes: 11
Pas: mexico
Buscar
Ciudad: queretaro
A
r
Enlac r
es i
b
a
Pginas
Hola Rulas
Boletine me imagino que la fecha la necesitas a tiempo de control-M, o bien si la fecha la
s introduces (por ODATE), a un programa lo puedes calcular por programa, en caso de
Acerca que necesites la fecha ODATE del dia y ademas las fechas parametros de primer dia
de este
habil y ultimo habil del mes anterior, lo puedes resolver en la pantalla de control-m
sitio
de definicion del proceso en cuestion.
Encu
esta
alf
Cual
cree no te quejes, no esperes a ver que puede la informatica hacer por ti, si no que puedes
Ud. hacer tu con la informatica.
que es
la alfrcort
soluci
n a la
Usuario
edad
prome
dia
muy
alta
(50
aos)
de la
gente Mensajes: 21
de
mainfr Registrado: 14 Ene 2009, 09:15
ame.
10.5.5 %%CALCDATE.
Puede calcular fechas a partir de una fecha dada. Su formato ser:
%%CALCDATE fecha +/- una_cantidad
donde la fecha estar en formato en YYMMDD y la cantidad estar dentro del rango 1-
65.
Ejemplo.
%%SET %%FECHA-AYER = %%CALDATE %%ODATE - 1
cuyo resultado ser para el 1 de junio de 1992
%%SET %%FECHA-AYER = 920530
La sentencia %%CALCDATE debe incluirse como parte de la sentencia %%SET
no te quejes, no esperes a ver que puede la informatica hacer por ti, si no que puedes
hacer tu con la informatica.
alfrcort
Usuario
Mensajes: 21
Pas: espaa
Ciudad: madrid
A
r
r
i
b
a
rulas2009
Usuario
Mensajes: 11
Pas: mexico
Ciudad: queretaro
A
r
r
i
b
a
> : "If the specified date is not a current working date, shift to the
next working date in the calendar. (If the specified date is a working
date, do not shift.)"
< : "If the specified date is not a current working date, shift to the
previous working date in the calendar. (If the specified date is a
working date, do not shift.)"
Tintxiko
Tintxiko
Colaborador
Mensajes: 138
Pas: Espaa
Ciudad: Vitoria
Ocupacin: Otra
EXP.CTM.V410.SYMBOL(DWHEMER)
DWHDSN = INF
DWHUNIT = SYSWRK
* MODIFICAR LAS VARIABLES EN CASO DE
EMERGENCIA ***
* EJEMPLO:
%%DWHDSN = PRODWH
%%DWHUNIT = WORK