Mainframe MQ issue

Support for MQSeries and Websphere Message Oriented Middleware communication systems for z/OS
ANUSHAD1
Posts: 1
Joined: Mon Jun 23, 2014 6:01 pm
Skillset: JCL, COBOL, PL1, CICS, DB2
Referer: Internet

Mainframe MQ issue

Postby ANUSHAD1 » Mon Jun 23, 2014 7:20 pm

Hi All,

I'm using a Job to push the records from a dataset to an MQ. The step is:

Code: Select all

//MQSUF2Q  EXEC IDB4MEXE,PROGRAM=IKJEFT01                     
//EQUCOST  DD DISP=OLD,DSN=ABCM.TEST.RKCMF23.EQUCOST,         
//             DCB=(RECFM=FB,LRECL=42,BLKSIZE=26880)         
//SYSTSPRT DD SYSOUT=*                                       
//SYSTSIN  DD *                                               
  MQSUF2Q +                                                     
  mqqmgr=IQM4  +   
  mqqueue=RKCM.TEST.REPLY +                           
  filename=DD:EQUCOST +                                       
  filemode=r +                                               
  filenl=N +                                                 
  mqmaxmsg=0                                                 
/*       


This filenl=N + (means "new line" = no : this will write all the records in the file to the MQ in a single line without new line ). There

The LRECL of the dataset ABCM.TEST.RKCMF23.EQUCOST is 42. It has 4 records.
When this step executes pushes the file data to MQ. But in the 43rd position (end of first record), it is also pushing a junk character ("." as visible to us, 2 5 is the hex value). This is happening at the end of all the 4 records in the file, due to which further processes are failing.

Please note: I have verified that the file has no junk data.

Can you please advise how to proceed. Thanks in advance.

Thanks,
Anusha

[coded]

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: Mainframe MQ issue

Postby Robert Sample » Tue Jun 24, 2014 2:03 am

It appears your file is being treated as a Unix text file, for which X'25' (line feed) is automatically appended by Unix. Your possible solutions include indicating that the data set is NOT Unix (presumably to MQ), changing one or more MQ parameters so it is not assuming Unix for the data set, or talking to your site support group about why this is happening and getting their help in fixing it.


  • Similar Topics
    Replies
    Views
    Last post