Portal | Manuals | 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

Senior Member


Joined: 21 Sep 2010
Posts: 2443
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

Senior Member


Joined: 21 Sep 2010
Posts: 2443
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 Multiple Sums in one File Rick Ryan SYNCSORT 2 Wed Jul 29, 2020 1:30 am
No new posts Learning about Systems Assembler prog... WilliamDownie PL/I & Assembler 1 Mon Jul 20, 2020 3:27 pm
No new posts Extract part of data from file and wr... sathyajes DFSORT/ICETOOL 9 Thu Jul 16, 2020 10:49 am
No new posts Identify the count from two diffrent ... UmashankarSubramani DFSORT/ICETOOL 19 Sat Jul 11, 2020 4:35 am
No new posts Problem getting record length of a re... amitc23 COBOL Programming 2 Thu Jul 02, 2020 10:52 pm

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