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
 

 

comparing alphanumeric fields of unequal length

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
pghiii

New User


Joined: 23 Aug 2005
Posts: 1
Location: Greenville, SC

PostPosted: Wed Aug 24, 2005 12:16 am    Post subject: comparing alphanumeric fields of unequal length
Reply with quote

Have some discussion going on in the office re. the results of comparing a 1-byte alpha field with a 2-byte constant with leading space. Specifically we are getting the compiler warning for the following:
WPUM365C-USER-TYPE PIC X.

IF USER-TYPE-CHANGED
IF WPUM365C-USER-TYPE EQUAL SPACES
The result of the comparison of operands WPUM365C-USER-TYPE and L is
known at compile time, based on the attributes of the operands.
Unconditional code was generated.
OR (WPUM365C-USER-TYPE EQUAL 'L ' OR ' L')
MOVE WPUM365C-USER-TYPE TO CM-USER-TYPE-REQUEST
ELSE
MOVE -1 TO WPUM365D-USER-TYPE-L
MOVE 2 TO WPUM365D-USER-TYPE-H
WPUM365D-USER-TYPE-C
MOVE ' LEAD MUST BE BLANK OR L(LEAD USER)' TO
WS-SAVE-MESSAGE
PERFORM 9000-ERROR THRU 9000-ERROR-EXIT.

I don't see why it's unconditional.
Back to top
View user's profile Send private message

sendil

New User


Joined: 30 Jun 2005
Posts: 27

PostPosted: Thu Aug 25, 2005 1:56 pm    Post subject:
Reply with quote

Could you please send some more clear details.......


Thanks
sendil
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am


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