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
 

 

Read files in CICS

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

New User


Joined: 14 Mar 2008
Posts: 74
Location: India,Chennai

PostPosted: Fri Jul 23, 2010 11:40 am    Post subject: Read files in CICS
Reply with quote

Hi all,

I have an requirement in which i have to read a file based on value from the screen. If the value in screen is '1' i have to read file 'FILEA', If the value is '2', i have to read file 'FILEB' ..... There are 6 such files.

I tried moving the file name based on the condition and then read it. But it abbended. Can u please help me in this. Please let me know if we can pass the ddname dynamically?

Approach i tried:

If value = '1'
move 'FILEA' to ws-dd-name
else
if value = '2'
move 'FILEB' to ws-dd-name
else
....
ENd-if.

EXEC CICS STARTBR DATASET ('ws-dd-name')
RIDFLD (KEY)
GTEQ
END-EXEC.


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

Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Jul 23, 2010 1:06 pm    Post subject:
Reply with quote

Quote:
EXEC CICS STARTBR DATASET ('ws-dd-name')
RIDFLD (KEY)
GTEQ
END-EXEC.


You don't use quotes around a variable name. Try
Code:
EXEC CICS STARTBR DATASET (ws-dd-name)
RIDFLD (KEY)
GTEQ
END-EXEC.


Garry
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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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