IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to pass values when using command Start Transaction


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Fri Oct 29, 2010 6:54 pm
Reply with quote

Hi all,

I am invoking a transaction using Start TRANSID command and i am trying to pass some values through FROM field
but values are not getting transferred when i am trying to fetch in that code.. can you tell me how to pass values using this command...

i am using this code..

DISPLAY ' COMM-AREA ' COMM-AREA
EXEC CICS
START
TRANSID('NG58')
TERMID(TERMID)
FROM(COMM-AREA)
LENGTH(8)
RESP(RESPONSE-CODE)
END-EXEC

value of COMM-AREA at display is CAFFB

but when in the next program i m moving from DFHCOMMAREA it is showing ' a' (i think may be this is garbage value'

so how to get the comm-area content in the transaction
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Oct 29, 2010 6:57 pm
Reply with quote

The target transaction 'NG58' needs to issue a RETRIEVE to get the data passed from the FROM area.

Bill
Back to top
View user's profile Send private message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Fri Oct 29, 2010 8:24 pm
Reply with quote

i have tried it but its not working..

EXEC CICS
RETRIEVE
INTO(COMM-AREAA)
LENGTH(LEN)
RESP(RESPONSE-CODE)
END-EXEC
IF RESPONSE-CODE NOT EQUAL DFHRESP(NORMAL)
DISPLAY ' END DATA'
END-IF.

but now its not showing anything not even garbage value
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 29, 2010 8:33 pm
Reply with quote

Quote:
i have tried it but its not working..
This tells us nothing. You could post the RETRIEVE EIBRESP and EIBRESP2 codes -- which WOULD tell us something -- but just posting it didn't work means nothing to us.
Back to top
View user's profile Send private message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Fri Oct 29, 2010 8:39 pm
Reply with quote

sorry i forgot to write that..

what should be the value of length parameter in LENGTH field

EIBRESP is 00000022
EIBRESP2 is 00000000
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Oct 29, 2010 8:41 pm
Reply with quote

and what does the manual say about an EIBRESP 22 ???
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 29, 2010 8:45 pm
Reply with quote

What's the PIC for LEN and what did you set it to before you did the RETRIEVE?
Back to top
View user's profile Send private message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Fri Oct 29, 2010 8:49 pm
Reply with quote

the pic for len is--

01 LEN PIC 9(2).


move 8 to len

and i am setting it to 8 before retrieve command..
because in my comm-area total value of PIC clause is '8'
only
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 29, 2010 8:54 pm
Reply with quote

The LENGERR is occurring because the LENGTH variable is explicitly stated to be a half-word BINARY variable (PIC S9(04) COMP in COBOL) and not USAGE DISPLAY. The hex representation of your 8 is X'F0F8', which is half a word -- but the binary value is negative, and the CICS manual says having a negative length value will cause a LENGERR.
Back to top
View user's profile Send private message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Fri Oct 29, 2010 9:13 pm
Reply with quote

ya right.

THanks it worked out...
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 29, 2010 9:29 pm
Reply with quote

Glad to hear it worked.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top