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: 6966
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: 7255

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 Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts OPC JCL Variable passion_sujesh IBM Tools 5 Fri Jul 01, 2016 4:21 am
No new posts JOINKEYs and Variable files migusd SYNCSORT 8 Fri Jun 17, 2016 3:16 am
No new posts PC to Host for unicode file Tom Steiner TSO/ISPF 5 Mon May 16, 2016 10:38 pm


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