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
 
CICS read problem and question

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

New User


Joined: 03 Mar 2005
Posts: 2

PostPosted: Thu Mar 03, 2005 12:32 pm    Post subject: CICS read problem and question
Reply with quote

Hi all,

Using a standard CICS read command as illustated below

EXEC CICS READ
FILE ('filename')
INTO (record-area)
LENGTH (LENGTH OF record-area)
RIDFLD (ws-ridfield)
EQUAL
RESP (WS-CICS-RESP)
END-EXEC.

I have encounted a length error problem with one of the programs I'm investigating. But there is a mirror program that uses the same file andis not encountering the error. The strange thing in this program is that before execution of the read command the length already shows a negative 23565 value. As I understand before execution the length should be zeroes and only after execution that the length will have a value. Can anybody shed light on this?

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

meetsrk

New User


Joined: 13 Jun 2004
Posts: 85

PostPosted: Fri Mar 04, 2005 9:50 pm    Post subject:
Reply with quote

hi,
Check the record length of the VSAM file and the record length of record-area in working storage section are same
or
Check the length picture clause, whether it is declared as S9(4) COMP.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Mar 07, 2005 1:09 am    Post subject:
Reply with quote

Hi Rex,

Can you show us the actual READ cmd and the listing of "record-area" and perhaps a few lines before and after the "record-area" description?

Another possiblity is that the length field generated by the cmd is being overlaid. Is there any table processing in the pgm?
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 Need to track the CICS transaction fr... sam8051 CICS 3 Mon Aug 07, 2017 3:11 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Problem commiting to DB2 from IMS MPP Ole Soerensen IMS DB/DC 2 Wed Jul 26, 2017 5:19 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm


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