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

Alaphanumeric to Edited


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

New User


Joined: 30 Dec 2003
Posts: 19

PostPosted: Tue Jun 03, 2008 1:56 pm
Reply with quote

Hi

I have a field with an alphanumeric ex. POL-EXPI X(5) and the another one COV-EXPI which is 9V999. This POL-EXPI is the screen field.

As per my requirement I have to compare these two fields...I tried in several ways....but in vain.

Could you please suggest any way to complete this task...

Thanks in Advance
Subba
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Jun 03, 2008 2:58 pm
Reply with quote

what ways did you try?



define interm-expi pic 9v999.

inspect pol-expi converting low-values to spaces.
move function numval(pol-expi) to interm-expi.

if cov-expi = interm-expi ......
Back to top
View user's profile Send private message
srvmani
Warnings : 1

New User


Joined: 30 Dec 2003
Posts: 19

PostPosted: Tue Jun 03, 2008 4:35 pm
Reply with quote

Hi

My shop does't allow the functions. I am getting error...
Please provide any other way..

Thanks for the reply..
Subbu
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Jun 03, 2008 5:42 pm
Reply with quote

sorry, I don't do antiquated op-systems.
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 165
Location: Bangalore

PostPosted: Wed Jun 04, 2008 3:15 pm
Reply with quote

can srvmani please post the ways that you tried...
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jun 04, 2008 7:52 pm
Reply with quote

Hello,

Quote:
Please provide any other way..
Once you show what you tried that did not work, people here can probably help.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Jun 05, 2008 5:51 pm
Reply with quote

Showing the possible content variations of each field (if any) would help too.
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 How to determine is PDS member is bei... CLIST & REXX 13
No new posts XML-GENERATE to render edited numeric COBOL Programming 0
No new posts Execute Partially Edited Rexx Exec fr... CLIST & REXX 14
No new posts Comparison of numeric edited variables COBOL Programming 4
No new posts Move from Comp3 variable to Edited Va... COBOL Programming 7
Search our Forums:

Back to Top