Posted: Sun Jul 13, 2008 1:12 am Post subject: How MRM domain behaves with COBOL copy books
Newbie
Joined: 09 Jun 2008 Posts: 7
Hi ...
I am tring to map the data from a java application to a COBOL application . I am using message sets for doing the same and mapping by using a mapping node .
Suppose these are the tags from Java application being mapped to COBOL
My requirement is if supId is not coming from java application then the SupplierId at COBOL should be mapped with 10 spaces . I have heard that MRM will automatically generate all the tags as given by the schema structure . So in this case will all the 3 tags be generated with the no of spaces even if in request if some tags are missing
fjp_saper is correct. If supId is missing, you will have to add it to outputRoot. You can do that in two ways
a) create it with a value of ten spaces
b) create it with an explicit NULL value. ( CREATE OutputRoot.MRM.supId VALUE = NULL ). In the message set, set the CWF Encoding Null to NULLPadFill, and Padding Character to SPACE.
b) is slightly better, because all the information about the physical format of the message stays in the message set and does not leak into the message flow.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum