Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
fetch values into an array defined in an application program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: fetch values into an array defined in an application program
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: 1439
Location: Bangalore,India

PostPosted: Mon Jan 14, 2008 2:12 pm    Post subject:
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    Post subject:
Reply with quote

refer to http://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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts query to fetch record which has only ... maxsubrat DB2 0 Mon Dec 11, 2017 5:03 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts DFHJSON-TRANSFRM container for WebSer... mbattu CICS 0 Fri Oct 20, 2017 2:18 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us