MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DCLGEN creation in BATCH?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Thu Mar 22, 2007 1:06 pm    Post subject: DCLGEN creation in BATCH? Reply with quote

Can a dclgen be created in a batch job? If so, can you show an example?
_________________
Thanks,
NASCAR9
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Mar 22, 2007 1:32 pm    Post subject: Reply with quote

Nascar9,

Try this

Code:

//STEP0100 EXEC PGM=IKJEFT01
//SYSTSPRT DD  SYSOUT=*             
//SYSTSIN  DD  *                                   
 DSN SYSTEM(xxxx)                                   
 DCLGEN TABLE(tbl name)   -                           
        OWNER(tbl owner)  -                           
        ACTION(REP)       -                           
        LANGUAGE(COBOL)   -                           
        LIBRARY('your pds(member name)')   
 END                                               
//*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Thu Mar 22, 2007 4:24 pm    Post subject: Reply with quote

Thanks kolusu! Once again you're the 'Shell Answer Man' (showing my age)

this is how I coded my dclgen:
Code:

//*                                         
//STEP0100 EXEC PGM=IKJEFT01                 
//SYSTSPRT DD  SYSOUT=*,DCB=BLKSIZE=121     
//SYSPRINT DD  SYSOUT=*                     
//SYSTSIN  DD  *                             
 DSN SYSTEM(DB2Q)                           
 DCLGEN TABLE(FDBMD.PROCEDURE_GROUPING)  -   
        OWNER(FDBMD)                     -   
        ACTION(REP)                      -   
        STRUCTURE('PROC-GROUPING-TABLE') -   
        NAMES('PROCGRP-')                -   
        COLSUFFIX(YES)                   -   
        LANGUAGE(COBOL)                  -   
        LIBRARY('QC.DECLGEN(PROCGRP)')       
 END                                         
//*       
                                   


created a dclgen just like 9.DB.2
_________________
Thanks,
NASCAR9
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group