manual conditions file and maybe jobs chapter 6selected implementation issues809

Upload: ayan-banerjee

Post on 05-Apr-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Manual Conditions File and Maybe Jobs Chapter 6Selected Implementation Issues809

    1/4

    Manual Conditions File and Maybe JobsC ha pt er 6S el ec te d Im p le me nt at io n Is su es 809

    Manual Conditions File and Maybe Jobs

    T h e M a n u a l C o n d i t i o n s f i l e c o n t a i n s a l i s t o f p r e r e q u i s i t e

    c o n d i t i o n s t h a t a r e r e q u i r e d b y j o b s i n t h e A c t i v e J o b s f i l e b u t

    w h i c h a r e n o t a v a i l a b l e , t h a t i s , a d d e d t o t h e I O A C o n d i t i o n s f i l e ,

    u n l e s s t h e r e i s s o m e f o r m o f u s e r i n t e r v e n t i o n .Loading the Manual Conditions File

    C o n d i t i o n s a r e a d d e d t o t h e M a n u a l C o n d i t i o n s f i l e t h r o u g h

    t h e I O A L D N R S u t i l i t y . T h i s u t i l i t y i s r u n d u r i n g N e w D a y

    p r o c e s s i n g , b u t i t m u s t a l s o b e r u n f o l l o w i n g t h e a d d i t i o n o f a

    s e t o f j o b s i n t h e A c t i v e J o b s f i l e . T h e I O A L D N R S u t i l i t y c h e c k s t h e I N

    c o n d i t i o n s r e q u i r e d b y s c h e d u l e d j o b s a g a i n s t t h e c o n d i t i o n s

    a v a i l a b l e i n t h e I O A C o n d i t i o n s f i l e a n d a g a i n s t t h e O U T

    c o n d i t i o n s t h a t c a n b e s e t b y t h e s c h e d u l e d j o b s . A l l I N c o n d i t i o n s

    t h a t a r e n o t i n t h e I O A C o n d i t i o n s f i l e a n d t h a t a r e n o t l i s t e d

    a s O U T c o n d i t i o n s i n a s c h e d u l e d j o b a r e a d d e d t o t h e

    M a n u a l C o n d i t i o n s f i l e .

    Using the Manual Conditions File

    T h e M a n u a l C o n d i t i o n s f i l e p r o v i d e s t h e u s e r w i t h a l i s t o f

    c o n d i t i o n s f o r w h i c h m a n u a l i n t e r v e n t i o n i s r e q u i r e d i f t h e

    c o n d i t i o n s a r e t o b e a d d e d t o t h e I O A C o n d i t i o n s f i l e . T o u t i l i z e

    t h i s l i s t e f f e c t i v e l y , t h e u s e r m u s t d i s t i n g u i s h b e t w e e n t w o t y p e s

    o f c o n d i t i o n s i n t h e l i s t b e c a u s e e a c h r e q u i r e s a d i f f e r e n t t y p e o f

    i n t e r v e n t i o n . F r o m t h e u s e r p e r s p e c t i v e , t h e t w o t y p e s o f

    c o n d i t i o n s a r e :

    s

    M a n u a l C o n d i t i o n s C o n d i t i o n s t h a t a l w a y s r e q u i r e m a n u a l

    i n t e r v e n t i o n a n d a r e t h e r e f o r e n e v e r a u t o m a t i c a l l y a d d e d b y

    j o b s a s O U T o r D O C O N D c o n d i t i o n s .

    E x a m p l e

    J o b - X , w h i c h r e q u i r e s t h a t a t a p e h a s a r r i v e d b e f o r e t h e j o b i ss u b m i t t e d , c o n t a i n s I N p r e r e q u i s i t e c o n d i t i o n T A P E - A R R I V E D . T h i s

    c o n d i t i o n m u s t n o t b e a u t o m a t i c a l l y a d d e d t o t h e I O A C o n d i t i o n s

    f i l e b y a j o b , b u t m u s t i n s t e a d b e m a n u a l l y a d d e d b y t h e

    o p e r a t o r o n l y a f t e r t h e t a p e h a s a r r i v e d .

    Manual Conditions File and Maybe Jobs810CONTROL-M for OS/390 and z/OS User Guide

    s

    U n s c h e d u l e d C o n d i t i o n s C o n d i t i o n s t h a t c a n b e a d d e d

    a u t o m a t i c a l l y b y a j o b , b u t w h i c h a p p e a r i n t h e M a n u a l

    C o n d i t i o n s l i s t b e c a u s e n o n e o f t h e j o b s s c h e d u l e d t h a t d a y

    s e t t h e c o n d i t i o n . E x a m p l e J o b - B r e q u i r e s I N c o n d i t i o n J O B - A -

    E N D E D - O K . T h i s c o n d i t i o n i s a d d e d a s a n O U T c o n d i t i o n b y J o b - A .

    J o b - B i s s c h e d u l e d o n a d a y d u r i n g w h i c h J o b - A i s

    n o t s c h e d u l e d . T h e d i s t i n c t i o n b e t w e e n t h e t w o t y p e s o f

    c o n d i t i o n s m e n t i o n e d a b o v e i s i m p o r t a n t b e c a u s e e a c h t y p e

    r e q u i r e s a d i f f e r e n t u s e r r e s p o n s e , a s d e s c r i b e d b e l o w .

    Handling Manual Conditions

    T h e h a n d l i n g o f M a n u a l C o n d i t i o n s , a s d e f i n e d a b o v e , i s f a i r l y

    s t r a i g h t f o r w a r d . I n t h e a b o v e e x a m p l e , t h e u s e r c l e a r l y d o e s

    n o t w a n t t h e c o n d i t i o n a d d e d a u t o m a t i c a l l y , n o r d o e s t h e

  • 7/31/2019 Manual Conditions File and Maybe Jobs Chapter 6Selected Implementation Issues809

    2/4

    u s e r w a n t t h e c o n d i t i o n i g n o r e d . S i m p l y p u t , J o b - X m u s t n o t

    b e r u n u n l e s s t h e r e q u i r e d t a p e h a s a r r i v e d a t t h e s i t e , i n

    w h i c h c a s e t h e o p e r a t o r a d d s t h e c o n d i t i o n . F o r t h i s t y p e o f

    c o n d i t i o n , t h e o n l y d e s i r e d m a n u a l i n t e r v e n t i o n i s t h e a d d i n g o f

    t h e c o n d i t i o n a t t h e a p p r o p r i a t e t i m e . T h i s c a n b e

    p e r f o r m e d b y o p t i o n A ( A d d ) i n t h e M a n u a l C o n d i t i o n s

    s c r e e n .Handling Unscheduled Conditions

    T h e h a n d l i n g o f U n s c h e d u l e d C o n d i t i o n s , a s d e f i n e d a b o v e ,

    i s m o r e c o m p l e x b e c a u s e i t c o n c e r n s t h e i s s u e o f n o r m a l

    d e p e n d e n c y v e r s u s M a y b e d e p e n d e n c y :

    s

    N o r m a l D e p e n d e n c y A s u c c e s s o r j o b i s a l w a y s d e p e n d e n t o n t h e

    p r e d e c e s s o r j o b , r e g a r d l e s s o f w h e t h e r t h e p r e d e c e s s o r j o b i s

    s c h e d u l e d . W i t h t h i s t y p e o f d e p e n d e n c y , u s i n g t h e e x a m p l e c i t e d

    a b o v e , s u c c e s s o r J o b - B m u s t n o t b e s u b m i t t e d b e c a u s e

    p r e d e c e s s o r J o b - A w a s n o t s c h e d u l e d a n d e x e c u t e d . I n t h i s

    c a s e , t h e d e p e n d e n c y m u s t n o t b e i g n o r e d . T h e u n s c h e d u l e d

    p r e r e q u i s i t e c o n d i t i o n i s n o t a d d e d m a n u a l l y .

    Manual Conditions File and Maybe JobsC ha pt er 6S el ec te d Im p le me nt at io n Is su es 811

    s

    M a y b e D e p e n d e n c y A s u c c e s s o r j o b i s d e p e n d e n t o n t h e

    p r e d e c e s s o r j o b o n l y i f t h e p r e d e c e s s o r j o b i s s c h e d u l e d t h a t d a y .

    I f t h e p r e d e c e s s o r j o b i s n o t s c h e d u l e d t h a t d a y , t h e

    s u c c e s s o r j o b c a n s t i l l b e s u b m i t t e d , p r o v i d e d t h a t o t h e r r u n t i m e

    s c h e d u l i n g c r i t e r i a a r e s a t i s f i e d . I n t h i s c a s e , t h e p r e d e c e s s o r j o b

    i s r e f e r r e d t o a s a M a y b e j o b . W i t h t h i s t y p e o f d e p e n d e n c y , u s i n g

    t h e e x a m p l e c i t e d a b o v e , s u c c e s s o r j o b J o b - B m u s t b e s u b m i t t e d ,

    p r o v i d e d a l l o t h e r r u n t i m e s c h e d u l i n g c r i t e r i a a r e

    s a t i s f i e d , b e c a u s e p r e d e c e s s o r j o b J o b - A w a s n o t s c h e d u l e d . I n

    t h i s c a s e , t h e d e p e n d e n c y m u s t b e i g n o r e d o r b y p a s s e d .

    M e t h o d s f o r i g n o r i n g M a y b e d e p e n d e n c i e s a r e d e s c r i b e d

    b e l o w .

    Handling Maybe Dependencies

    T h e m o s t c o m m o n m e t h o d o f h a n d l i n g M a y b e j o b

    d e p e n d e n c i e s i s t o a d d t h e u n s c h e d u l e d c o n d i t i o n s o f M a y b e

    j o b s t o t h e I O A C o n d i t i o n s f i l e . H o w e v e r , e x a m i n i n g e a c h c o n d i t i o n

    i n t h e M a n u a l C o n d i t i o n s l i s t t o d e t e r m i n e i f i t i s a n u n s c h e d u l e d

    c o n d i t i o n f r o m a M a y b e j o b , a n d m a n u a l l y a d d i n g e a c hM a y b e j o b u n s c h e d u l e d c o n d i t i o n , i s a d i f f i c u l t p r o c e s s . T h e

    p r o c e s s c a n b e g r e a t l y s i m p l i f i e d a n d a u t o m a t e d , b y f o l l o w i n g

    t h e s e s t e p s : 1 . D e f i n e a U n i q u e P r e f i x f o r M a y b e J o b

    P r e r e q u i s i t e C o n d i t i o n s W h e n M a y b e d e p e n d e n c i e s a r e

    d e f i n e d , t h e p r e r e q u i s i t e I N , O U T a n d D O C O N D c o n d i t i o n s

    m u s t a l l h a v e t h e s a m e u n i q u e p r e f i x ( t h a t i s , a p r e f i x t h a t i s n o t

    u s e d f o r o t h e r p r e r e q u i s i t e c o n d i t i o n s ) . U s i n g a u n i q u e p r e f i x

    s y m b o l m a k e s i t e a s i e r t o s e e u n s c h e d u l e d c o n d i t i o n s o f M a y b e

  • 7/31/2019 Manual Conditions File and Maybe Jobs Chapter 6Selected Implementation Issues809

    3/4

    J o b s i n t h e M a n u a l C o n d i t i o n s l i s t . N o r m a l l y , t h i s p r e f i x i s e i t h e r

    s y m b o l # o r @ .

    NOTE

    I f y o u r s i t e u t i l i z e s M V S r e s t a r t s a n d u s e s s y m b o l @ i n O U T

    c o n d i t i o n s f o r t h e r e s t a r t , t h i s s y m b o l m u s t n o t b e u s e d a s a

    p r e f i x f o r M a y b e j o b c o n d i t i o n s . I n t h i s c a s e , u s e t h e # s y m b o l f o rM a y b e c o n d i t i o n s . F o r d e t a i l s , s e e A p p e n d i x F , M V S J o b R e s t a r t

    W i t h o u t C O N T R O L - M / R e s t a r t .

    Manual Conditions File and Maybe Jobs812CONTROL-M for OS/390 and z/OS User Guide

    2 . U s e t h e A D D M N C N D K e y S t r o k e L a n g u a g e u t i l i t y t o a d d t h e

    p r e r e q u i s i t e c o n d i t i o n s . T h e A D D M N C N D K S L u t i l i t y a u t o m a t i c a l l y

    a d d s a l l c o n d i t i o n s w i t h a s p e c i f i e d p r e f i x i n t h e M a n u a l

    C o n d i t i o n s f i l e t o t h e I O A C o n d i t i o n s f i l e . B y s p e c i f y i n g t h e a b o v e -

    d e f i n e d u n i q u e p r e f i x s y m b o l i n t h e u t i l i t y ,u n s c h e d u l e d c o n d i t i o n s f r o m M a y b e j o b s a r e a u t o m a t i c a l l y

    a d d e d , m a k i n g m a n u a l a d d i n g o f t h e c o n d i t i o n s

    u n n e c e s s a r y . A f t e r t h e a b o v e t w o s t e p s h a v e b e e n

    i m p l e m e n t e d , t h e o n l y m a n u a l i n t e r v e n t i o n r e q u i r e d f o r

    u n s c h e d u l e d c o n d i t i o n s o f M a y b e j o b s i s t h e e x e c u t i n g o f

    t h e A D D M N C N D K S L u t i l i t y .

    Maybe Jobs in Group Scheduling Tables

    T h e a b o v e i m p l e m e n t a t i o n f o r h a n d l i n g u n s c h e d u l e d

    c o n d i t i o n s o f M a y b e j o b s c a n b e a p p l i e d t o j o b s a n d c o n d i t i o n s

    i n a l l t y p e s o f s c h e d u l i n g t a b l e s . H o w e v e r , a n a l t e r n a t i v e m e t h o d

    i s a v a i l a b l e f o r c o n d i t i o n s a n d j o b s i n G r o u p s c h e d u l i n g t a b l e s .

    R a t h e r t h a n a d d t h e u n s c h e d u l e d c o n d i t i o n s o f M a y b e j o b s

    t o t h e I O A C o n d i t i o n s f i l e , t h e u n s c h e d u l e d c o n d i t i o n s c a n

    b e r e m o v e d a s r u n t i m e s c h e d u l i n g c r i t e r i a f o r t h e s u c c e s s o r j o b

    o r d e r s . T h e G r o u p E n t i t y d e f i n i t i o n i n G r o u p s c h e d u l i n g t a b l e s

    c o n t a i n s a n A D J U S T C O N D I T I O N S f i e l d . I f a v a l u e o f Y i s s p e c i f i e d i n t h e

    A D J U S T C O N D I T I O N S f i e l d , C O N T R O L - M c h e c k s t h e s c h e d u l e d j o b s f o r

    u n s c h e d u l e d c o n d i t i o n s . U n s c h e d u l e d c o n d i t i o n s n o r m a l l y

    a d d e d b y o t h e r j o b s i n t h e s a m e G r o u p s c h e d u l i n g t a b l e a r e

    r e m o v e d f r o m t h e I N s t a t e m e n t s o f t h e s c h e d u l e d j o b

    o r d e r s :

  • 7/31/2019 Manual Conditions File and Maybe Jobs Chapter 6Selected Implementation Issues809

    4/4

    s

    T h e s e c o n d i t i o n s d o n o t a p p e a r i n t h e Z o o m s c r e e n . T h e y

    a r e n o t , h o w e v e r , d e l e t e d f r o m t h e o r i g i n a l j o b s c h e d u l i n g

    d e f i n i t i o n .

    s

    T h e s e c o n d i t i o n s a l s o d o n o t a p p e a r i n t h e M a n u a l C o n d i t i o n s f i l e .

    T h e r e f o r e , t h e r e i s n o r e a l a d v a n t a g e t o d e f i n i n g t h e m w i t h au n i q u e p r e f i x , u n l e s s t h e y a r e u s e d a s I N c o n d i t i o n s f o r j o b s i n

    a d i f f e r e n t t a b l e . N o t e t h e f o l l o w i n g p o i n t s

    s

    U n s c h e d u l e d c o n d i t i o n s n o r m a l l y a d d e d b y j o b s i n o t h e r

    s c h e d u l i n g t a b l e s a r e n o t r e m o v e d f r o m t h e j o b o r d e r . T h e y

    a p p e a r i n t h e M a n u a l C o n d i t i o n s f i l e .

    s

    A s i n d i c a t e d a b o v e , A D J U S T C O N D I T I O N S a p p l i e s o n l y t o j o b s i n

    t h e s a m e G r o u p s c h e d u l i n g t a b l e . B y c o n t r a s t , t h e I O A L D N R S u t i l i t y

    d e t e c t s u n s c h e d u l e d c o n d i t i o n s o f M a y b e j o b s a c r o s s s c h e d u l i n g

    t a b l e s , a n d t h e A D D M N C N D K S L u t i l i t y a d d s t h e s e c o n d i t i o n s t o t h e

    I O A C o n d i t i o n s f i l e r e g a r d l e s s o f s c h e d u l i n g t a b l e .