Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to use IBM File Manager

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
ssamineni
Warnings : 1

New User


Joined: 10 Mar 2007
Posts: 16
Location: India

PostPosted: Sun Apr 29, 2007 12:09 pm    Post subject: How to use IBM File Manager
Reply with quote

Hi! Can anyone please let me know how to find out the length of a copybook without using file-aid.

We don't have file-aid in our project.We have File Manager.It would be greatful if anyone posts document on how to use file manager.
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Sun Apr 29, 2007 12:54 pm    Post subject:
Reply with quote

Hello,

One way to get the length of a copybook is to run a compile.

Will this provide what you need?
Back to top
View user's profile Send private message
ssamineni
Warnings : 1

New User


Joined: 10 Mar 2007
Posts: 16
Location: India

PostPosted: Sun Apr 29, 2007 2:22 pm    Post subject: Re: How to use IBM File Manager
Reply with quote

Thanks for the reply. I have checked listing for the program(Assembler) in Endevor which uses the copybook,but I couldn't find out the length.Could you please provide me some more information on this.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Sun Apr 29, 2007 3:29 pm    Post subject: Re: How to use IBM File Manager
Reply with quote

Hi!

the issue of finding lengths of structures can be solved :

PL/I if I remember correctly ( I just checked and I DID )

Quote:
1.4.7 Aggregate length table


An aggregate length table is obtained by using the AGGREGATE option. The table does not include any arrays or structures that have non-constant extents (such as those using REFER). For aggregates with constant extents, the table contains the following information:

* The file and line number where the aggregate is declared.

* The name of the aggregate and each element within the aggregate.

* The byte offset of each element from the beginning of the aggregate. As a word of caution, be careful when interpreting the data offsets indicated in the data length table. An odd offset does not necessarily represent a data element without halfword, fullword, or even double word alignment. If you specify or infer the aligned attribute for a structure or its elements, the proper alignment requirements are consistent with respect to other elements in the structure, even though the table does not indicate the proper alignment relative to the beginning of the table.

* The length of each element.

* The total length of each aggregate, structure, and substructure.

If there is padding between two structure elements, a /*PADDING*/ comment appears, with appropriate diagnostic information.


Assembler
You must do a little bit of work on Your own
( or have Your organization enforce a standard coding technique )

this is usually done by ( for example )

Code:

record_layout  equ * ( could be ds 0h/0f/0d if You need a specific alignment )
field1 dc/ds <a legal storage definition>   
field2 dc/ds <a legal storage definition>   
...
...
feldN dc/ds <a legal storage definition>   
record_layout_length equ *-record_layout ( it' s a minus )

and record_layout_length will be equated to the length of Your structure

I dislike COBOL so I will not give any suggestions about it

regards

e.s
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sun Apr 29, 2007 4:03 pm    Post subject: Re: How to use IBM File Manager
Reply with quote

ssamineni wrote:
Thanks for the reply. I have checked listing for the program(Assembler) in Endevor which uses the copybook,but I couldn't find out the length.Could you please provide me some more information on this.
From the listing, the length can be determined from the difference between the last byte and the first byte of the copybook expansion. You can subtract hex, can't you?

File Manager for z/OS V5R1 User?s Guide
Back to top
View user's profile Send private message
rz061m

New User


Joined: 03 Mar 2006
Posts: 48
Location: Chennai

PostPosted: Mon Apr 30, 2007 7:50 pm    Post subject:
Reply with quote

hi ssamineni,

Goto option 13 and give the PDS and member name of your copybook and this will give the length of the copybook along with the starting and ending position of all the fileds.

Also i dont remember the option in which this 13th option lies. So please take some time to go thru the main panel options one by one to see the screen that has option 13.

Hope i am not confusion you, its been long time since i worked in file manager.
Back to top
View user's profile Send private message
martin7658

New User


Joined: 05 May 2007
Posts: 1
Location: China

PostPosted: Sat May 05, 2007 10:16 pm    Post subject:
Reply with quote

Hello

I have a ideal that use Mainframe tools ,IBM File manager or DITTO to find out file length.

IBM File manager ,goto S.E.7 on main panel.
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 -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us