IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Inspect converting statement


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amb

New User


Joined: 12 Mar 2010
Posts: 64
Location: India

PostPosted: Mon Sep 27, 2010 3:40 pm
Reply with quote

Code:

 Inspect ws-var converting E-info to A-info.


If I get a character in ws-var which is not defined in the variable
E-info then that value is not converted.
I need to trap this condition.
Is there any specific return-code that the Inspect statement will give upon such a condition?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Sep 27, 2010 4:08 pm
Reply with quote

answer to your question, NO:

but if you
PERFORM varying subscript from 1 by 1 until subscript = length of ws-var
initialize tally-counter
INSPECT e-info tallying tally-counter for ws-var(subscript:1)
if tally-counter = 0
then ws-var(subscript:1) not in e-info
trap condition
end-if
end-perform
Back to top
View user's profile Send private message
Amb

New User


Joined: 12 Mar 2010
Posts: 64
Location: India

PostPosted: Mon Sep 27, 2010 5:31 pm
Reply with quote

Hey thanks for the information.
It working perfectly icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Converting fixed length file to excel... IBM Tools 7
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Converting S9(18) value to a decimal ... DFSORT/ICETOOL 6
Search our Forums:

Back to Top