MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to find the length of the generated copybook

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
js01
Beginner


Joined: 13 Oct 2005
Posts: 84
Topics: 32
Location: INDIA

PostPosted: Mon Jan 07, 2008 12:30 pm    Post subject: How to find the length of the generated copybook Reply with quote

Hello friends,

I want to find out the exact length of the generated copy book; actually this was generated thru Map compilation.

I can do it manually adding one by one (length of the reach field in data structure). But is there any way that I can get quickly.

Example. What would be the length of the structure?


01 MAP1I.
02 FILLER PIC X(12).
02 SDATEL COMP PIC S9(4).
02 SDATEF PICTURE X.
02 FILLER REDEFINES SDATEF.
03 SDATEA PICTURE X.
02 SDATEI PIC X(8).
02 FILLER PIC X.
02 STIMEL COMP PIC S9(4).
02 STIMEF PICTURE X.
02 FILLER REDEFINES STIMEF.
03 STIMEA PICTURE X.
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Mon Jan 07, 2008 12:32 pm    Post subject: Reply with quote

What do you need the length for?
Back to top
View user's profile Send private message
js01
Beginner


Joined: 13 Oct 2005
Posts: 84
Topics: 32
Location: INDIA

PostPosted: Mon Jan 07, 2008 1:00 pm    Post subject: Reply with quote

i need length of the field MAP1I.

thank you for your responce
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Mon Jan 07, 2008 1:18 pm    Post subject: Reply with quote

js01 wrote:
i need length of the field MAP1I.

thank you for your responce


I realize that, what are you going to do with it.
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Mon Jan 07, 2008 11:32 pm    Post subject: Reply with quote

If the map is part of the source code, check the displacements and lengths of the 01 level on the right side of the compile listing. At a previous shop, a coworker wrote a REXX program to show the positions and lengths of each field of an 01 structure in ISPF. Ask around. Maybe someone at your shop has already done something like this.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
petluri
Beginner


Joined: 05 Dec 2002
Posts: 19
Topics: 5
Location: Virginia, USA

PostPosted: Mon Jan 07, 2008 11:56 pm    Post subject: Reply with quote

If you have File-Aid, you can use option "8 - View Interpreted Record Layout".
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group