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

does it initialize while EXEC CICS READ FILE


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

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Fri Dec 04, 2009 3:25 pm
Reply with quote

Hi,

I searched the forum about this topic...may be i am pooor in searching... icon_sad.gif
i have one question....

i am moving some value to ws-read....

Code:
EXEC CICS READ FILE(file1)
EQUAL RIDFLD()
LENGTH()             
KEYLENGTH()   
INTO (ws-read)
RESP(WS-RESP)   
RESP2(WS-RESP2)


after the read command, consider the file dont have anything equal to this key... then the response will be not found... in that case whether the variable ws-read will loose its data or not...

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

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Dec 04, 2009 5:41 pm
Reply with quote

What happened when you tried it ??

Garry.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sat Dec 05, 2009 6:22 am
Reply with quote

if the read returns a not found , then WS-READ should contain
same value it had before the read.

Like Garry suggests, you should be able to tell for sure by
testing ...

pretty basic progamming stuff.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Using API Gateway from CICS program CICS 0
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top