View previous topic :: View next topic
|
Author |
Message |
technut
New User
Joined: 27 Dec 2007 Posts: 73 Location: India
|
|
|
|
I have tried to load a MQ with a flat file (RECFM=FB) of LRECL=62. Then I have converted the FB file (DDname: OUTPUTA) into VB of LRECL=66 and then tried again the CSQUTIL job is abending. Can any body tell me what kind of file I should have to load it into a MQ. The following is the piece of JCL I have been using. The error I was getting is also given below:
CSQU062E Incorrect format data record
/*JOBPARM S=SYTB
//STEP030 EXEC PGM=CSQUTIL,PARM='QMGR'
//STEPLIB DD DISP=SHR,DSN=SYS1.SCEERUN
// DD DSN=XXXXXX.MQSXXX.SCSQAUTH,DISP=SHR
// DD DSN=XXXXXX.MQSXXX.SCSQANLE,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=D
//SYSOUT DD SYSOUT=*
//OUTPUTA DD DSN=XXXXXX.DATA.INPUT,DISP=SHR
//*
//SYSIN DD *
LOAD DDNAME (OUTPUTA) QUEUE (QNAME) [/b]
Please suggest me how I can modify the file for getting it loaded into the MQ? |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
CSQUTIL is intended to LOAD records that were output of a COPY. To load your own flat file, you need a program to do MQPUTs. |
|
Back to top |
|
|
technut
New User
Joined: 27 Dec 2007 Posts: 73 Location: India
|
|
|
|
Thanks Bill. Your suggesion just guided me to stop searching in the web for a utility program that can load flat file to MQ. At last, I could wirte a COBOL to load the MQs with my desired flat file. Thanks again |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
If you can access the distributed MQ libraries, they supply many sample programs that can be tailored to your needs. The libraries are hlq.SCSQSAMP, hlq.SCSQCOBS and hlq.SCSQASMS. Browse thru the members and read the comments. |
|
Back to top |
|
|
|