DB2 QUERY

Ask question on - DataBase Concepts, IBM Mainframe DB2, DB2/UDB, DB2 Tools, SQL , DB2 programming with languages like COBOL, PL1.

Moderators: Kalicharan, Moderator Group

Post Reply
DIVYA BHARTI
Member
Posts: 1
Joined: Mon Apr 18, 2016 11:03 am

DB2 QUERY

Post by DIVYA BHARTI » Mon Apr 18, 2016 11:08 am

What is the keyword to find POSITION in a db2 query for a field? for example there is a column NAME and i need to pick its POSITION 2,how to do that?

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

Post by dbzTHEdinosauer » Mon May 09, 2016 6:10 pm

position is a key word, look it up in the manuals.

not really sure what you want,

your example needs to be a little more specific.

char, substr are a couple of built-in functions. use built-in functions as a search key while looking in the appropriate db2 manual
http://www-01.ibm.com/support/docview.w ... wg27019288
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