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
 
Can i values be passed as parametre in INSERT through JCL?

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

New User


Joined: 06 Mar 2006
Posts: 76
Location: Chennai

PostPosted: Fri Aug 27, 2010 8:54 am    Post subject: Can i values be passed as parametre in INSERT through JCL?
Reply with quote

Hi,

I would like to pass VALUE of a field through parametre by submitting jCL. Is that possible?

I am running simple insert query through JCL with insert SQL as below:

INSERT INTO TABLE
VALUES ( &PARM1, &PARM2, 123);

Is that possible for me to pass &PARM1, &PARM2 through jcl in stead of hard coding values?
Back to top
View user's profile Send private message

GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri Aug 27, 2010 1:25 pm    Post subject:
Reply with quote

JCL doesn't do SQL
you missed a step between JCL and SQL : JCL => program or utility => SQL
Back to top
View user's profile Send private message
noorkh

New User


Joined: 06 Mar 2006
Posts: 76
Location: Chennai

PostPosted: Mon Aug 30, 2010 10:19 am    Post subject:
Reply with quote

GuyC,

I mean JCL utility DB2 utility like DB2CPROC or any BMC utility to run SQL queries through data set.

In that case can i mention & in my sql values and pass those values through jcl.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Aug 30, 2010 10:26 am    Post subject:
Reply with quote

Hello,

Suggest you create your insert statement with the values resolved in a pds member and then reference this in the batch sql process.
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 LOW VALUES as a KEY juares castro DB2 10 Sat Apr 07, 2018 1:06 am
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

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