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
 

 

size of var length rec

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: size of var length rec
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    Post subject: Re: size of var length rec
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    Post subject:
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    Post subject: Re: size of var length rec
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 6 Sun Nov 06, 2016 8:11 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm


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