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 READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am


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