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
How to pass meta data in MQ message using COBOL
Moderators: dbzTHEdinosauer, Moderator Group
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.
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.
thanks.
http://sarkarinaukriexam.org
http://sarkarinaukriexam.org
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page