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

size of var length rec


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
keerthi

New User


Joined: 23 Mar 2005
Posts: 25

PostPosted: Wed Jun 01, 2005 11:41 am
Reply with quote

1. How can u find the size of the variable length records?
2. Assume that a job contains 200 steps but i want to exec first 50 steps
Without using cond & restart parameters?

Thanks in advance
Back to top
View user's profile Send private message
lucky

New User


Joined: 01 Jun 2005
Posts: 12
Location: Croatia

PostPosted: Sat Jun 04, 2005 7:24 pm
Reply with quote

Hi Keerthi!

To see the size of each record, I guess you could write a utility that would open the file as undefined format, and then you could read the RDW value.

But there is probably a better way, I just don't know of any icon_smile.gif

Lucky
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Jun 05, 2005 12:01 am
Reply with quote

In the FD code: RECORD VARYING FROM 1 TO (you put the max rec len here or 32K decimal) DEPENDING ON WS-LEN

Then in WS define WS-LEN PIC 9(6).

After the READ WS-LEN will contain the len of the rec just read. To WRITE make sure WS-LEN contains the correct len.

If you WRITE w/o changind WS-LEN you will WRITE the same len as you READ.
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Sun Jun 05, 2005 5:54 pm
Reply with quote

Hi,
Ans of your second qns
Use a // parameter after the step 50. It will not execute any other step after your step50. So previous 50 steps will execute only.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
Search our Forums:

Back to Top