IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is indicator variable


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
megha.bargaje

New User


Joined: 01 Aug 2006
Posts: 3
Location: pune

PostPosted: Thu Aug 31, 2006 5:43 pm
Reply with quote

wat is indicator variable????

WARNING: TITLE EDITED
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 218
Location: India

PostPosted: Fri Sep 01, 2006 2:20 pm
Reply with quote

megha.bargaje wrote:
wat is indicator variable????

WARNING: TITLE EDITED



hi megagha,

is ur question abt null indicator if so

Null indicator is used to specify whether the value in a db2 column is null or not

Null indicator = 0 not null
-1 null value
-2 trunctated(not sure of this)


correct me if i m wrong
Back to top
View user's profile Send private message
ssenthil_kumar19
Currently Banned

New User


Joined: 02 May 2006
Posts: 2

PostPosted: Fri Sep 01, 2006 2:58 pm
Reply with quote

IDENTIFICATION DIVISION.
PROGRAM-ID. INDICAT.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 A PIC S9(4) SIGN LEADING SEPARATE.
EXEC SQL
INCLUDE SENTHIL
END-EXEC.
EXEC SQL
INCLUDE SQLCA
END-EXEC.
PROCEDURE DIVISION.
EXEC SQL
SELECT *
INTO :DCLSENTHIL :INDSTRUC
FROM SENTHIL
WHERE FIRSTNAME = 'SENTHIL'
END-EXEC.
IF INDSTRUC(3) < 0
MOVE INDSTRUC(3) TO A.
DISPLAY A.
STOP RUN.

NOTE:

SENTHIL----> TABLE NAME
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Adding 'ODD' and 'EVEN' indicator at ... DFSORT/ICETOOL 6
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
Search our Forums:

Back to Top