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
 

 

CLIST declaration is throwing me an error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
kavikesav

New User


Joined: 22 Mar 2007
Posts: 21
Location: chennai

PostPosted: Fri Sep 21, 2007 6:18 pm    Post subject: CLIST declaration is throwing me an error
Reply with quote

I have code like
IF &ACCT = THEN +
SET &ACCT = &SUBSTR(1:18, )



but when i give a input as FHGFSFK---GHK--100
it is throwing me a error


IF FHGFSFK---GHK--100 = THEN
THIS STATEMENT HAS AN EXPRESSION WITH A CHARACTER DATA ITEM USED NUMERICALLY
***


any idea about it????
can anybody help me out??????
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: Fri Sep 21, 2007 7:43 pm    Post subject:
Reply with quote

Hello,

Please post more of your code using copy/paste.

Is this
Quote:
IF FHGFSFK---GHK--100 = THEN
really in the code?
Back to top
View user's profile Send private message
kavikesav

New User


Joined: 22 Mar 2007
Posts: 21
Location: chennai

PostPosted: Wed Sep 26, 2007 4:35 pm    Post subject: Reply to: CLIST declaration is throwing me an error
Reply with quote

in the panel i am receiving the input as fhfgk----&ahgfskg and i am checking in the code that whether it is blank or not..... for that only it is showing me error.....i am unable to give input with any special characters like @ - & * what can i do for that ???? my input data is having some special characters ...
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Wed Sep 26, 2007 5:14 pm    Post subject:
Reply with quote

&str(FHGFSFK---GHK--100 )
Back to top
View user's profile Send private message
kavikesav

New User


Joined: 22 Mar 2007
Posts: 21
Location: chennai

PostPosted: Wed Sep 26, 2007 5:35 pm    Post subject:
Reply with quote

in the panel i am getting FHGFSFK---GHK--100 as input using a variable &acct


then in the program i m checking as
if &acct = then
say key is not ok
else
&file=&acct

while executing the code it is throwing me the error as
IF FHGFSFK---GHK--100 = THEN
THIS STATEMENT HAS AN EXPRESSION WITH A CHARACTER DATA ITEM USED NUMERICALLY


what can be done to get the input with hyphens and ambersons in the panel
Back to top
View user's profile Send private message
kavikesav

New User


Joined: 22 Mar 2007
Posts: 21
Location: chennai

PostPosted: Wed Sep 26, 2007 6:20 pm    Post subject:
Reply with quote

can anybody reply to mine
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: Wed Sep 26, 2007 7:08 pm    Post subject:
Reply with quote

Hello,

Did you try what was suggested?
Quote:
&str(FHGFSFK---GHK--100 )

If not, do so - if you did and still have problems, post the problem you see.

If it works, it is good to let the forum know and then others may learn.
Back to top
View user's profile Send private message
kavikesav

New User


Joined: 22 Mar 2007
Posts: 21
Location: chennai

PostPosted: Wed Sep 26, 2007 8:48 pm    Post subject:
Reply with quote

ya it is accepting if the hyphens are there but when & is used it is not accepting the data ex:if the input is like abcd&efgh--101 then it is stored as abcd--101.....
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Trace in CLIST PANEL cvnlynn CLIST & REXX 1 Thu Jun 22, 2017 11:06 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am


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