View previous topic :: View next topic
|
Author |
Message |
sreelu.s
New User
Joined: 23 Jul 2010 Posts: 10 Location: hyderabad
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Is this now working?
Suggest you look at a program that IS working and see what is defferent. . . |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
sreelu.s
New User
Joined: 23 Jul 2010 Posts: 10 Location: hyderabad
|
|
|
|
Sorry ! Thats not the Ws-variable , its the file-section variable ..
Thanks for the Replies !! |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
So, you got it working now? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|