Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Access to COBOL work file buffer in storage

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Lukasz.Wojtasiak

New User


Joined: 16 Apr 2013
Posts: 3
Location: Czech Republic

PostPosted: Tue Apr 16, 2013 6:37 pm    Post subject: Access to COBOL work file buffer in storage
Reply with quote

I can access file buffers by pointers from BLF and also with some more detailed information (lenght) of the buffer from FCB and FIS. But I need to access the work file buffer (used for example in COBOL sort function).

So my question is: how to recognize file buffers from work file buffers?
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Apr 16, 2013 7:04 pm    Post subject: Reply to: Access to COBOL work file buffer in storage
Reply with quote

You'd best show some code and explain what you are trying to do.
Back to top
View user's profile Send private message
Lukasz.Wojtasiak

New User


Joined: 16 Apr 2013
Posts: 3
Location: Czech Republic

PostPosted: Tue Apr 16, 2013 7:40 pm    Post subject: Reply to: Access to COBOL work file buffer in storage
Reply with quote

I have a dump of static storage, I search it for eyecatcher FCB and FIB and there I can find address and lenght of the buffer for every file defined in cobol program. But those control blocks are the same for line sequential files definitions and work file definition. If I have a 3 file definitions in cobol program: 2 FD and one WD, so knowing the addresses I can using assembler easy access the bufffers but still I dont know what buffer is the work file buffer.

I can also using Base Locator Table to locate the BLFs and also find there pointer to every buffer for each file in my COBOL program but still I dont know which is the buffer of my work file.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Apr 16, 2013 7:45 pm    Post subject: Reply to: Access to COBOL work file buffer in storage
Reply with quote

Are you trying to solve a dump, or access data "outside" of the Cobol program, from Assembler, for some reason?
Back to top
View user's profile Send private message
Lukasz.Wojtasiak

New User


Joined: 16 Apr 2013
Posts: 3
Location: Czech Republic

PostPosted: Tue Apr 16, 2013 7:54 pm    Post subject:
Reply with quote

I`m working on tool written in assemlber wich is used to dump COBOL data divisions (now I`m working on file section) in case of abend in COBOL program. So i access it outside of cobol program using assembler. I know how to dump those buffers but I dont know how to determine which is the work file buffer. I have to know if I want to display raport correctly.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Apr 16, 2013 8:11 pm    Post subject: Reply to: Access to COBOL work file buffer in storage
Reply with quote

Is this a tool for "sale" or for local use?

Can you post a small sample Cobol program?

What are you sourcing your dump from?

Why Assembler?
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sharing PLI storage Pedro PL/I & Assembler 2 Mon Oct 16, 2017 10:11 pm
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts User access certification In Mainfram... Virendra Shambharkar All Other Mainframe Topics 4 Tue Oct 03, 2017 12:32 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

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