Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Use TEmplates for Punch card and sysrec data sets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Thu Oct 07, 2010 8:53 am    Post subject: Use TEmplates for Punch card and sysrec data sets
Reply with quote

Hi all,

I want to use Templates for Syspunch dataset and sysrec dataset using DSNTI aul. I am able to unload the data if i specify normal data set like

Code:
//CRTESQL  EXEC PGM=IKJEFT01,DYNAMNBR=20                   
//STEPLIB  DD  DISP=SHR,DSN=D2T3.DSNEXIT                   
//         DD  DISP=SHR,DSN=D2T3.DSNLOAD                   
//SYSTSPRT DD  SYSOUT=*                                     
//SYSTSIN  DD  *                                           
 DSN SYSTEM(D2T3)                                           
 RUN  PROGRAM(DSNTIAUL) PLAN(DSNTIAUL) PARMS('SQL') -       
      LIB('D2T3.RUNLIB.LOAD')                               
//SYSPRINT DD SYSOUT=*                                     
//SYSUDUMP DD SYSOUT=*                                     
//SYSREC00 DD DSN=TNASC.UNLOAD.CLM07MOD.CLM.D100822.DATA,   
//            DISP=(NEW,CATLG,DELETE),                     
//            UNIT=(SYSDA,9),SPACE=(CYL,(100,50),RLSE)     
//SYSPUNCH DD DSN=TNASC.UNLOAD.CLM07MOD.CLM.CNTL,           
//            DISP=(NEW,CATLG,DELETE),                     
//            UNIT=SYSDA,SPACE=(CYL,(5,1),RLSE),           
//            DCB=(RECFM=FB,LRECL=80,BLKSIZE=0000)         
//**********************************************************
//*  UNLOAD TABLE A51DD2T3.Y2006.CLM                       
//**********************************************************
//SYSIN    DD *                                             
  SELECT                                                   
  DB2_PART_KEY                                             
  ,TRACER_ID                                               
  ,SYS_CREATE_DT                                           
  ,  CASE  STRIP(TRANS_TYPE, B)                             
     WHEN 'TRLOG'  THEN 1                                   
     WHEN 'SF' THEN 3                                       
     WHEN '837I' THEN  18                                   
     WHEN '837P' THEN  19                                   
     WHEN '837D' THEN 20                                   
     ELSE 0                                                 
     END AS  FORMAT_VER_ID                                 
  ,PLAN_CD     
FROM PNASCO.ABC             



But instead of giving dataset names i want to use TEMPlate like
For syspunch
Code:
TEMPLATE  MYSYSR   DSN 'DB2DBA.&TS..&UQ..P&PA..SREC'   
  UNIT SYSDA DISP (NEW,CATLG,CATLG) SPACE (5,5) TRK   
Fo r sysrec
Code:
TEMPLATE  MYSYSRT  DSN 'DB2DBA.&TS..&UQ..SREC'
    UNIT TAPEC                                       
    MODELDCB SYS3.DSCB                               
    BUFNO 10                                         
    MGMTCLAS MCMT0001                               
    RETPD 30                                         
    DISP(NEW,CATLG,CATLG
)


Please advise.
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2278
Location: @my desk

PostPosted: Thu Oct 07, 2010 9:24 am    Post subject:
Reply with quote

Hello,

Do you expect some advantage by providing such a TEMPLATE input?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Thu Oct 07, 2010 11:32 am    Post subject:
Reply with quote

Yes, I have to unload by partitions and 100 of tables so rather than declaring name it is better to use template.
Have you ever used it with Dsntiaul.I know we can easily use it with dsnuproc but with dsnuproc Strip and case is not working
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Thu Oct 07, 2010 3:42 pm    Post subject:
Reply with quote

I don't think template is possible in dsntiaul.

one way is to create tables from your select and then unload those tables.

Why do you need those files ?
If it is to load them somewhere else you could probably use crossloading.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us