Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Load MQ using JCL - CSQUTIL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
feellikeneo

New User


Joined: 19 Mar 2007
Posts: 73
Location: Chennai

PostPosted: Wed Jul 30, 2008 11:54 am    Post subject: Load MQ using JCL - CSQUTIL
Reply with quote

Hi,

I am using CSQUTIL utility to LOAD a MQ from a Sequential Dataset (RECFM=FB). This is the JCL I am using,

Code:
//COPY   EXEC PGM=CSQUTIL,PARM='<Q_MGR>'                   
//STEPLIB  DD   DISP=SHR,DSN=thlqual.SCSQANLE             
//         DD   DISP=SHR,DSN=thlqual.SCSQAUTH             
//OUTPUTA  DD DSN=<INPUT DSN of RECFM=FB>,   
//            DISP=SHR,DCB=(EROPT=ACC)                   
//CSQUOUT  DD SYSOUT=*                                   
//SYSPRINT DD SYSOUT=*                                   
//SYSIN    DD *                                         
 LOAD QUEUE(<Q_NAME>)  - 
      DDNAME(OUTPUTA)                                   
/*                                                       


I first tried without giving "DCB=(EROPT=ACC)" but my job abended saying "DCB EROPT=ABE OR AN INVALID CODE"

Then I tried giving "DCB=(EROPT=ACC)"but then job ends with RC=8 with no records loaded.

My question is,
-Is it mandatory to use a file of VBS to load an MQ using CSQUTIL ?
-If yes, how can i convert my file in FB to VBS without affecting the data (I know this question should not be posted here, but then this somehow relates to MQ)

Thanks in advance for your help on this.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jul 30, 2008 7:41 pm    Post subject:
Reply with quote

Hello,

Quote:
If yes, how can i convert my file in FB to VBS without affecting the data
You can use your sort product to copy the fb file to a vbs file (i just did). All you need to do is specify the SORTOUT as a vbs file (i.e. // DCB=(RECFM=VBS,LRECL=80,BLKSIZE=2000), or whatever).

I don't know if vbs is mandatory. . .
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us