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
 

 

How to execute CECI XCTL command with multiple line inputs?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
jagadeesanm87

New User


Joined: 20 Jan 2011
Posts: 14
Location: Mumbai, India

PostPosted: Wed Sep 21, 2011 6:48 pm    Post subject: How to execute CECI XCTL command with multiple line inputs?
Reply with quote

Hi,
In CICS, I need to execute a XCTL command as below
Code:
CECI XCTL PROGRAM (RP9Z410)                                             
COMMAREA (<GetHis2MfDataRequest>                                       
     <ServiceId>SVB0XX</ServiceId>) LENGTH(10000)   


On execution I get the below msg.
Code:
STATUS:  ABOUT TO EXECUTE COMMAND                           NAME=     
 EXEC CICS  Xctl                                                     
  Program( 'RP9Z410 ' )                                               
  < COmmarea() < Length() > >                                         
  < INPUTMSG() < INPUTMSGLen() > >                                   
  < CHannel() >                                                       
                             
  MESSAGES: 106 ERROR                                                         
DFHAC2001 09/21/2011 09:12:11 HMECICS Transaction '' is not recognized. Check 
 that the transaction name is correct.     


Seems like only 1st line is considered.
Please let me know what is wrong. And how to add multiple lines in CICS transaction.

Thanks
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Sep 21, 2011 6:59 pm    Post subject:
Reply with quote

CECI allows entry of data across multiple lines -- what it does not allow is use of
Code:
<GetHis2MfDataRequest>                                       
     <ServiceId>SVB0XX</ServiceId>
If this is data you attempting to pass to your RP9Z410 program, you need to define a variable in CECI and set the value of that variable to the text. Your COMMAREA would then point to the CECI variable.
Back to top
View user's profile Send private message
jagadeesanm87

New User


Joined: 20 Jan 2011
Posts: 14
Location: Mumbai, India

PostPosted: Wed Sep 21, 2011 7:11 pm    Post subject:
Reply with quote

Thanks Robert icon_smile.gif ,

How do we define the CECI variable, could you give me an example on using here.

Thanks.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Sep 21, 2011 7:18 pm    Post subject:
Reply with quote

how about looking in the manual?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Sep 21, 2011 7:21 pm    Post subject:
Reply with quote

After you type in CECI on the CICS screen, hit PF5. You'll get a screen that looks like
Code:

  VARIABLES   LENGTH   DATA
 &DFHC        +00016   THIS IS A SAMPLE
 &DFHW        +00046   EXEC CICS WRITEQ QUEUE('""CIV000') FROM(&DFHC)
 &DFHR        +00045   EXEC CICS READQ QUEUE('""CIV000') INTO(&DFHC)
add your variable on the next line, set its length, then hit enter. For example:
Code:

  VARIABLES   LENGTH   DATA
 &DFHC        +00016   THIS IS A SAMPLE
 &DFHW        +00046   EXEC CICS WRITEQ QUEUE('""CIV000') FROM(&DFHC)
 &DFHR        +00045   EXEC CICS READQ QUEUE('""CIV000') INTO(&DFHC)
 &commarea    +10000
You can then place the cursor on the & of your new variable, hit the enter key and get a data entry screen, such as (partial display of a full screen)
Code:

  EXPANSION OF:                                LENGTH= +10000 NAME= &COMMAREA
 +00000
 +00064
 +00128
 +00192
 +00256
 +00320
 +00384
 +00448
 +00512
 +00576
Once you've entered your data, hit enter to get back to the CECI menu, put in your XCTL command, and away you go.
Back to top
View user's profile Send private message
jagadeesanm87

New User


Joined: 20 Jan 2011
Posts: 14
Location: Mumbai, India

PostPosted: Wed Sep 21, 2011 7:35 pm    Post subject:
Reply with quote

Thanks Robert icon_biggrin.gif

This is a good lesson for me.

I get the below error on execution by using variable.

Code:
 STATUS:  ABOUT TO EXECUTE COMMAND                           NAME=             
  EXEC CICS  Xctl                                                             
   Program( 'RP9Z410 ' )                                                       
   < COmmarea( '  <GETHIS2MFDATAREQUEST>                         ' ... )       
     < Length( +10000 ) > >                                                   
   < INPUTMSG() < INPUTMSGLen() > >                                           
   < CHannel() >                                                               

DFHAC2206 10:02:04 HMECICS Transaction CECI failed with abend ASRA. Updates to
 local recoverable resources backed out.                           


Don't know how to proceed further.
Am I missing something very important. Please help

Thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Sep 21, 2011 7:37 pm    Post subject:
Reply with quote

Debug the ASRA. You might try using CEDF, or Xpediter if you have it, but something in your program is not working correctly.
Back to top
View user's profile Send private message
jagadeesanm87

New User


Joined: 20 Jan 2011
Posts: 14
Location: Mumbai, India

PostPosted: Thu Sep 22, 2011 7:47 pm    Post subject:
Reply with quote

Yes Robert, there was an error in the program. I figured it out today. And now it is working fine.

Thanks a lot icon_smile.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Thu Sep 22, 2011 9:52 pm    Post subject:
Reply with quote

Glad to hear it -- thanks for letting us know.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm


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