How to pass meta data in MQ message using COBOL

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
speeleti
Member
Posts: 1
Joined: Tue Aug 26, 2014 7:31 am

How to pass meta data in MQ message using COBOL

Post by speeleti » Tue Aug 26, 2014 7:46 am

I have a requiment.. Input file contains details for all employees.. For each employee in the file, i need to to create one MQ record. While putting a message in MQ, need to append some user defined Meta data to MQ record like Emp ID, Creation date as downstream system required this info to differentiate MQ messages. Could you please let me know how to pass Meta data in the MQ message using COBOL.

MQ message should like
MQ message1:
000001,20140801
000001,EMP NAME1,10000.00,ADDRESS1,

(where 000001,20140801 is meta data)

MQ message2:
000002,20140801
000002,EMP NAME2,20000.00,ADDRESS2,

Appreciate your help in this...Thanks

newwaysys
Member
Posts: 38
Joined: Tue Apr 14, 2015 3:19 pm
Location: dfd
Contact:

Post by newwaysys » Wed Apr 29, 2015 2:15 pm

Format Builder includes a feature that allows you to import a COBOL copybook into Format Builder and create a message definition to transform the COBOL data. When importing a copybook, comments are used to document the imported copybook and the Groups and Fields it contains. IFSC code indian bank

To import a COBOL copybook:

Choose Tools > Import > COBOL Copybook Importer. The COBOL Copybook Importer dialog displays.

Enter data in the fields as described in the following tables:

Table 17-3 COBOL Copybook Importer Options

Field Description
File Name

Type the path and name of the file you want to import.

Browse

Click to navigate to the location of the file you want to import.


Table 17-4 COBOL Copybook Importer Options – Byte Order

Field Description
Big Endian

Select this option to set the byte order to Big Endian.

Note: This option is used for IBM 370, Motorola, and most RISC designs (IBM mainframes and most Unix platforms).

Little Endian

Select this option to set the byte order to Little Endian.

Note: This option is used for Intel, VAX, and Unisys processors (Windows, VMS, Digital, Unix, and Unisys).


Table 17-5 COBOL Copybook Importer Options – Character Set

Field Description
EBCDIC

Select this option to set the character set to EBCDIC.

Note: These values are attributes of the originating host machine.

US-ASCII

Select this option to set the character set to US-ASCII.

Note: These values are attributes of the originating host machine.

Other

Cell Phone number tracking

The character encoding of the field data.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others