IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Prepare flat file for loading into a MQ using CSQUTIL, how?


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Thu Apr 23, 2009 3:29 pm
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Apr 23, 2009 7:40 pm
Reply with quote

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
View user's profile Send private message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Sat May 02, 2009 6:33 pm
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Sun May 03, 2009 6:48 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top