Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups 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 -> NATURAL & MQSERIES
Author Message
feellikeneo

Active User


Joined: 19 Mar 2007
Posts: 79
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
References
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 9211
Location: 221 B Baker St

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> NATURAL & MQSERIES All times are GMT + 6 Hours
Page 1 of 1