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

fetch values into an array defined in an application program


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Akhilesh Pathak

New User


Joined: 11 Jan 2008
Posts: 1
Location: India

PostPosted: Mon Jan 14, 2008 1:28 pm
Reply with quote

I am unable to execute the following code:

exec sql
fetch c1_cursor
into : ws-field (sub)
end-exec.

In this code ws-field is a field in an array.
The error message I get :

the character '(' is invalid.

Please suggest me a solution.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Jan 14, 2008 2:12 pm
Reply with quote

Akhilesh,

Quote:
exec sql
fetch c1_cursor
into : ws-field (sub)
end-exec.

Use normal variable as your host variable and later move this value to array.
Back to top
View user's profile Send private message
Amit Banerjee

New User


Joined: 12 Jan 2008
Posts: 14
Location: india

PostPosted: Wed Jan 16, 2008 4:16 am
Reply with quote

refer to publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.apsg/db2z_cobolsyntaxhostvardeclaration.htm
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top