CICS-DB2
Moderators: Kalicharan, Moderator Group
-
- Member
- Posts: 4
- Joined: Sun May 20, 2012 11:43 am
CICS-DB2
I have a map which accept an input( in a field name [value]) from the user and its need to be passed to a table's query:
select salary into :ws-salary from employee
where exp = :ws-exp
now this query(at where clause) doesnt accept the data type of [value] (i.e my field name)because the employee.exp is of s9(2)v9(1) comp-3 data type. i tired changing the data type of my field [value] (using picout and picin) as s9(2) v9 comp-3 but still its showing me ASAR ABEND.
Any idea????
select salary into :ws-salary from employee
where exp = :ws-exp
now this query(at where clause) doesnt accept the data type of [value] (i.e my field name)because the employee.exp is of s9(2)v9(1) comp-3 data type. i tired changing the data type of my field [value] (using picout and picin) as s9(2) v9 comp-3 but still its showing me ASAR ABEND.
Any idea????
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
???????????
your map input/output field can not possibly be comp-3.
you must proof the data coming in from your map,
then you must populate a pic s9(2)v9 comp-3 Working-Storage field,
which will then be used as a host variable in the WHERE clause.
your map input/output field can not possibly be comp-3.
you must proof the data coming in from your map,
then you must populate a pic s9(2)v9 comp-3 Working-Storage field,
which will then be used as a host variable in the WHERE clause.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
-
- Member
- Posts: 4
- Joined: Sun May 20, 2012 11:43 am
-
- Member
- Posts: 4
- Joined: Sun May 20, 2012 11:43 am
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
don't know what your problem is, you have not provided any details.
you may want to look into 1.13 BIF DEEDIT
you may want to look into 1.13 BIF DEEDIT
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
-
- Member
- Posts: 4
- Joined: Sun May 20, 2012 11:43 am
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page