IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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: 3076
Location: NYC,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.
www.ibm.com/support/pages/determining-if-file-open-and-enabled-accessing-file-cics-application
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: 3076
Location: NYC,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.
www.ibm.com/support/knowledgecenter/SSGMCP_5.5.0/reference/commands-spi/dfha8_setfile.html
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

 


Similar Topics
Topic Forum Replies
No new posts Anybody knows SIRON programming? COBOL Programming 2
No new posts Associating a USERID with a CICS-Libe... CICS 0
No new posts omegamon for cics -UNSUPPORTED ENVIRO... CICS 2
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts How to Login in to cics region and is... CICS 9
Search our Forums:

Back to Top