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: 995
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 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
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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