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

REXX to use FILEMASTER LAYOUT view option


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pravinj

New User


Joined: 10 Jun 2008
Posts: 24
Location: india

PostPosted: Wed Sep 30, 2009 11:04 pm
Reply with quote

I am working on a REXX utility to calculate the memory in bytes occupied between two points (marked in labels) in the working storage section of COBOL pgm/COPYBOOK. Sometime back i was trying to parse each string between the labels and calculate the lenght by computing bytes of each picture clause. But that's really a tough job to get through all different scenarios.
Now i have got into PLAN B of writing the marked portion of the copybook to a temporary PDS and then calling CA FILEMASTER Layout view option. I succeeded in validating the labels/ creating the temporary PDS/ and almost reaching to the data entry panel of view layout option. But i wish to bypass the data entry panel and display the layout (with total bytes occupied) of temporary member created.

Can you share your thoughts and approaches for this idea?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 30, 2009 11:37 pm
Reply with quote

Hello,

If this was my requirement, i believe i'd have used the output of a compile and calculated the difference of the displacements. . .

I'm not familiar with FileMaster, but if there is a way to run it in batch, you could parse the output generated. . .
Back to top
View user's profile Send private message
pravinj

New User


Joined: 10 Jun 2008
Posts: 24
Location: india

PostPosted: Thu Oct 01, 2009 6:56 pm
Reply with quote

I could go on with this option, but if i have to find the length on the code which is still under development or if i need to find the length of the copybook?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 01, 2009 7:12 pm
Reply with quote

Hello,

Put what is available in some throw-away code and "compile" it. . .

It will have errors, but the lengths/displacements will be resolved - unless the data definitions are incomplete/wrong. . .
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top