Page 1 of 1

Mainframe MQ issue

PostPosted: Mon Jun 23, 2014 7:20 pm
by ANUSHAD1
Hi All,

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

//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]

Re: Mainframe MQ issue

PostPosted: Tue Jun 24, 2014 2:03 am
by Robert Sample
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.