Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
redirecting the o/p of query to a dataset in batch

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

New User


Joined: 06 Jun 2007
Posts: 58
Location: Hyderabad

PostPosted: Mon Apr 20, 2009 12:18 pm    Post subject: redirecting the o/p of query to a dataset in batch
Reply with quote

Hi,
I have used teh following jcl to run my query in batch.But when iam trying to redirect it to another dataset iam getting a MAXCC=12.Can anybody help me in this regard.
Code:
//BATCHSQL EXEC PGM=IKJEFT01,DYNAMNBR=20             
//SYSTSPRT DD SYSOUT=*                               
//SYSPRINT DD DSN=userid.dataset,       
//            DISP=(NEW,CATLG,DELETE),               
//            DCB=(RECFM=FB,LRECL=420,BLKSIZE=0)     
//SYSUDUMP DD SYSOUT=*                               
//SYSTSIN DD *                                       
DSN SYSTEM(DB01)                                     
RUN PROGRAM(DSNTEP2) PLAN(DSNTEP81) -               
LIB('SYS3.DAJ.CSF.DB2LOAD')                         
END     
//SYSIN DD * 
  my query
         
Back to top
View user's profile Send private message

ruodeer

New User


Joined: 06 Jul 2007
Posts: 59
Location: home

PostPosted: Mon Apr 20, 2009 12:59 pm    Post subject:
Reply with quote

You should put the output of job here.
Back to top
View user's profile Send private message
Lijo

New User


Joined: 24 Aug 2008
Posts: 41
Location: Cochin

PostPosted: Tue Apr 21, 2009 12:40 pm    Post subject:
Reply with quote

Please try allocating dataset to SYSTSPRT DD. Usually SYSTSPRT is the standard ouput DD for TSO program (IKJEFT**)...
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 query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts CA Intertest Batch 555shanth CA Products 0 Tue Nov 28, 2017 11:10 am
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
No new posts Native SQL Query kishpra DB2 1 Wed Nov 22, 2017 8:38 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us