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
 

 

How to move Packed decimal value to Map field?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
rajesh_mbt

New User


Joined: 27 Mar 2006
Posts: 95
Location: India

PostPosted: Wed Dec 20, 2006 3:50 pm    Post subject: How to move Packed decimal value to Map field?
Reply with quote

Hi ,
I am developing one transaction screen in CICS. Based on a search field in the Map1 it shoud display other information in map2. Now my query is some of the result fields are defined in DB2 table as comp-3 variable. When I move these variable(host variable) to map fields(ie output field) for map2, am getting the following compilation error.

TRA7-PYMT-AM (PACKED NON-INTEGER)" and "PAYAMTO (ALPHANUMERIC)" did
follow the "MOVE" statement compatibility rules. The statement was
discarded.

MOVE TRA7-PYMT-CRNCY-CD TO PAYAMTO


HOW TO SOLVE THIS ISSUE?
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Dec 20, 2006 6:41 pm    Post subject: Re: How to move Packed decimal value to Map field?
Reply with quote

rajesh_mbt wrote:
...UMERIC)" did
follow the "MO...

Did a "not" get dropped?
Please post the entire PAYAMTO please.
Back to top
View user's profile Send private message
rajesh_mbt

New User


Joined: 27 Mar 2006
Posts: 95
Location: India

PostPosted: Wed Dec 20, 2006 7:07 pm    Post subject: Re: How to move Packed decimal value to Map field?
Reply with quote

Yes, I missed out 'not' after 'did' ....

The actual statement as follows....
"TRA7-PYMT-AM (PACKED NON-INTEGER)" and "PAYAMTO (ALPHANUMERIC)" did not follow compatibility rules. The statement was discarded. "
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Dec 20, 2006 7:11 pm    Post subject: Re: How to move Packed decimal value to Map field?
Reply with quote

William Thompson wrote:

Please post the entire PAYAMTO please.
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Wed Dec 20, 2006 9:36 pm    Post subject:
Reply with quote

Number one, you need to move the packed field to a pic 9() field
before you can move it to the screen field. If you want to use the
edit mask zzzzz9, you need to move the pic 9() field to the edit
mask field and then move the dit mask field to the screen field.

Not to be rude, but this is cobol 101, when wanting to display a
comp, comp-3 and the likes. I would take the time to read the
MANUAL.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm


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