SQL QUERIES IN JCL

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
bobbysidhartha
Member
Posts: 7
Joined: Wed Oct 10, 2012 10:32 am
Location: Chennai

SQL QUERIES IN JCL

Post by bobbysidhartha » Wed Oct 10, 2012 10:45 am

Hello everyone,

I am Sidhartha, working as a software engineer in IBM-Mainframes. I have a requirement in JCL.

It is to Insert values into a table and Update rows in a table using SQL queries in the JCL.

Thank you.
Last edited by bobbysidhartha on Wed Oct 10, 2012 2:40 pm, edited 1 time in total.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Wed Oct 10, 2012 11:36 am

Look in the index of the JCL reference manual for SQL. Then ask your coleagues how to go about whatever it is that you want to do as your post is not clear.
Regards
Nic

bobbysidhartha
Member
Posts: 7
Joined: Wed Oct 10, 2012 10:32 am
Location: Chennai

Post by bobbysidhartha » Wed Oct 10, 2012 2:41 pm

It is to Insert values into a table and Update rows in a table using SQL queries in the JCL.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Wed Oct 10, 2012 5:48 pm

JCL does not know ANYTHING about SQL queries, It is for providing job information to the initator. You need a program of some sort to anything with SQL.
Regards
Nic

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Wed Oct 10, 2012 8:59 pm

JCL does not "do" queries.

What you can do is run a TSO session in batch and from this session, you can issue SQL queries. Some people call this "SPUFI in batch".

As this is usually site-specific, you need to talk with others who are already doing this on your system.
Have a good one

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu Oct 11, 2012 12:17 am

what will tell you which rows to INSERT with which values
and which rows to UPTDATE SETting which column to what value?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others