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
 
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 Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm

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