Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Usage of WS-variable as the host-variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
sreelu.s

New User


Joined: 23 Jul 2010
Posts: 10
Location: hyderabad

PostPosted: Thu Jul 12, 2012 12:01 am    Post subject: Usage of WS-variable as the host-variable
Reply with quote

When I used the working-storage variable which i have declared in the Working-storage section in the query (something like :ws-key1) , it din't accept it saying Ws-key1 is not a host-variable.

Why can't I use a ws-variable in this way ?

When I search this topic in the internet i could see many postings saying we can use the ws-variable as host-variable ... Please Clarify this ....
Thanks in Advance.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Thu Jul 12, 2012 12:21 am    Post subject:
Reply with quote

Quote:
is not a host-variable.


your paraphrasing of 'exact' error messages is useless.

tell us the exact message that the pre-compiler/coprocessor provided.

are you using a pre-compiler and is ws-key1 contained in a copybook?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jul 12, 2012 8:07 am    Post subject:
Reply with quote

Hello,

Is this now working?

Suggest you look at a program that IS working and see what is defferent. . .
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Jul 12, 2012 3:09 pm    Post subject:
Reply with quote

And, with what have been posted - hope you've NOT missed the ":" for the so called host-variable in the actual program.
Back to top
View user's profile Send private message
sreelu.s

New User


Joined: 23 Jul 2010
Posts: 10
Location: hyderabad

PostPosted: Sat Jul 14, 2012 12:02 am    Post subject: Reply to: Usage of WS-variable as the host-variable
Reply with quote

Sorry ! Thats not the Ws-variable , its the file-section variable ..

Thanks for the Replies !!
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jul 16, 2012 3:48 pm    Post subject:
Reply with quote

So, you got it working now?
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Mon Jul 16, 2012 6:17 pm    Post subject: Reply to: Usage of WS-variable as the host-variable
Reply with quote

If it is from the FILE SECTION, there are some topics you can search for on this site which explain why that won't work.
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us