Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
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    Post subject: Prepare flat file for loading into a MQ using CSQUTIL, how?
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us