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
 

 

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 Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm


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