View previous topic :: View next topic
|
Author |
Message |
keerthi
New User
Joined: 23 Mar 2005 Posts: 25
|
|
|
|
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 |
|
|
lucky
New User
Joined: 01 Jun 2005 Posts: 12 Location: Croatia
|
|
|
|
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
Lucky |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
subhasis_50
Moderator
Joined: 09 Mar 2005 Posts: 363 Location: Earth
|
|
|
|
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 |
|
|
|