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: 991
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 CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm


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