Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 998
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 ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us