Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
CICS file processing using application programming

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: CICS file processing using application programming
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: 2492
Location: NY,USA

PostPosted: Sat Jul 11, 2020 7:16 am    Post subject:
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.
https://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    Post subject: Reply to: CICS file processing using application programming
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: 2492
Location: NY,USA

PostPosted: Sat Jul 11, 2020 7:05 pm    Post subject:
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.
https://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    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 Hex Value - vb file replace old date ... premnath DFSORT/ICETOOL 10 Sat Oct 17, 2020 3:15 am
No new posts Related to using a file in comparison Kumar Sandeep JCL & VSAM 7 Fri Oct 16, 2020 5:30 pm
No new posts Creating a single-record file with CO... Joerg.Findeisen DFSORT/ICETOOL 8 Tue Oct 06, 2020 8:19 pm
No new posts Altering output file attributes f8ful All Other Mainframe Topics 5 Tue Oct 06, 2020 4:07 pm
No new posts TWS - ETT File triggering does not wo... me00266 IBM Tools 4 Mon Sep 07, 2020 11:58 pm

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