Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

unable to retrieve data from cics start
Started a CICS transaction with:

EXEC CICS START
TRANSID(WS-TCODE)
FROM(WS-DATA)
LENGTH(WLEN)
RESP(RESPONSE-CODE)
END-EXEC.

When trying to retrieve data with:

EXEC CICS RETRIEVE
INTO(WS-DATA)
LENGTH(LEN)
RESP(RESPONSECODE)
END-EXEC.

I get ENDDATA.  What gives?
Looked at many numerious examples, but
this looks pretty straighforward.  Do I have
to allocate/deallocate a special queue name?

Help anybody?


Report this thread to moderator Post Follow-up to this message
Old Post
progrmmr
04-19-05 01:55 AM


Re: unable to retrieve data from cics start

progrmmr wrote:
> Started a CICS transaction with:
>
> EXEC CICS START
>      TRANSID(WS-TCODE)
>      FROM(WS-DATA)
>      LENGTH(WLEN)
>      RESP(RESPONSE-CODE)
> END-EXEC.
>
> When trying to retrieve data with:
>
> EXEC CICS RETRIEVE
>   INTO(WS-DATA)
>   LENGTH(LEN)
>   RESP(RESPONSECODE)
> END-EXEC.
>
> I get ENDDATA.  What gives?
> Looked at many numerious examples, but
> this looks pretty straighforward.  Do I have
> to allocate/deallocate a special queue name?
>
> Help anybody?

ENDDATA means there is no outstanding message to be retrieved.  Your
CICS commands look correct.

You might try adding the WAIT option to the RETRIEVE command, but that
implies that your started task will be long-running, or conversational
rather than pseudo-conversational.  It is not possible to get an
ENDDATA condition on a RETRIEVE with WAIT.  Your started task simply
goes into a wait state until there is a message to RETRIEVE.

I assume you had a good EIBRESP on your START command.  Is the task
that issues the START command in the same CICS region as the task
being started?  Or are you trying to start a task in another region
using IRC or ISC?

You cannot allocate a temp storage queue for the start message being
passed to the started task.  CICS handles that for you.

Can you tell us a bit more about your program set up?


--
http://arnold.trembley.home.att.net/


Report this thread to moderator Post Follow-up to this message
Old Post
Arnold Trembley
04-19-05 08:55 AM


Re: unable to retrieve data from cics start
The systems people told me it was a CICS setting.

It works now.

Thanks.


Report this thread to moderator Post Follow-up to this message
Old Post
progrmmr
04-19-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:47 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.