View previous topic :: View next topic |
Author |
Message |
NASCAR9 Intermediate
Joined: 08 Oct 2004 Posts: 274 Topics: 52 Location: California
|
Posted: Thu Mar 22, 2007 1:06 pm Post subject: DCLGEN creation in BATCH? |
|
|
Can a dclgen be created in a batch job? If so, can you show an example? _________________ Thanks,
NASCAR9 |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Mar 22, 2007 1:32 pm Post subject: |
|
|
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 |
|
|
NASCAR9 Intermediate
Joined: 08 Oct 2004 Posts: 274 Topics: 52 Location: California
|
Posted: Thu Mar 22, 2007 4:24 pm Post subject: |
|
|
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 |
|
|
|
|