IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

CICS file processing using application programming


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

New User


Joined: 11 Jul 2020
Posts: 2
Location: Uk

PostPosted: Sat Jul 11, 2020 4:18 am
Reply with quote

Hi,

I m trying to Open CICS VSAM file using my cobol program.

Below is the code.

Move DFHVAL (update) to ws-upd.

Exec CICS
Set file(ws-opn)
Enablestatus (ws-opn)
Updatestatus(ws-upd)

End-exec.

But I m getting compilation error.

Please 🙏.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2508
Location: NY,USA

PostPosted: Sat Jul 11, 2020 7:16 am
Reply with quote

In CICS , you don’t have you open any VSAM file, it should be opened already.

Refer this to see how it’s done if needed to be done.
Use [URL] BBCode for Links
Back to top
View user's profile Send private message
Satish_gsv

New User


Joined: 11 Jul 2020
Posts: 2
Location: Uk

PostPosted: Sat Jul 11, 2020 1:20 pm
Reply with quote

Hi,

Thanks for the response.

But I m getting the compilation error for the updatestatus.

Code:
'UPDATE' KEYWORD REQUIRES 1 SUB-OPERAND(S). STATEMENT NOT TRANSLATED.


Can you please suggest??

Deleted attachment and inseted the text into the post with code tags - moderator
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2508
Location: NY,USA

PostPosted: Sat Jul 11, 2020 7:05 pm
Reply with quote

Please copy paste the errors going forward as screenshots consumes great amount of space. You can look for CICS region job jeslogs for more details on this error.

Please look at the Manual here to see the correct syntax. You need to use at least one option but again reread what I said above.
Use [URL] BBCode for Links
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

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts FILE STATUS - 39 ON VARIABLE LENGTH V... COBOL Programming 1
No new posts How to get RBA value from CICS EVENT CICS 4
No new posts COBOL VS SORT Utility for file format... COBOL Programming 6
This topic is locked: you cannot edit posts or make replies. Sample CICS Webservices Program CICS 1
No new posts How to find which file contains my se... DFSORT/ICETOOL 6

Back to Top