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

jcl clarifications


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

New User


Joined: 10 Mar 2005
Posts: 26

PostPosted: Wed Jul 27, 2005 7:22 pm
Reply with quote

hi
i needa small clarification.

1. can we notify to more than one user.if so please give me the syntax.

2. space=(TRKS,(20,20,10)).can any one explain how many number of tracks are created totally in thebest case and worst case.plase expalin how to calculate the number of tracks.


3. I hav the following statement.

SORT FIELDS = (1,5,CH,A) EQUALS
SUM FIELDS = (10,5,PD)

can any one clarify what is the use of the above statement.can i hav an example please.what is the use of equals.what do u mean by PD.
Back to top
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Wed Jul 27, 2005 8:08 pm
Reply with quote

1)Please see this link
http://ibmmainframes.com/viewtopic.php?t=2815&highlight=notify

2)Usually 1 track consists of 56,664 bytes on a 3390 disk.Exactly how many tracks are actually allocated by the system depends on the values specified int he LRECL and BLKSIZE parameters of the dataset na dhence the amount of storage space u have requested will vary from device to device.[/url]
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Jul 27, 2005 9:12 pm
Reply with quote

Quote:
3. I hav the following statement.

SORT FIELDS = (1,5,CH,A) EQUALS
SUM FIELDS = (10,5,PD)

can any one clarify what is the use of the above statement.can i hav an example please.what is the use of equals.what do u mean by PD.


A PD field looks like this in hex: 'dd...ds' where d is 0-9 and s is the sign, usually C or F for positive and D for negative.

The DFSORT statements above sum the PD values in positions 10-14 whenever two records are found with the same CH (character) sort key in positions 1-5. Only one record of the pair is kept. EQUALS tells DFSORT to keep the first record of the pair.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Thu Jul 28, 2005 8:53 pm
Reply with quote

about packed decimal see this link

http://ibmmainframes.com/viewtopic.php?t=3359
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Jul 29, 2005 7:24 am
Reply with quote

Quote:
2. space=(TRKS,(20,20,10)).can any one explain how many number of tracks are created totally in thebest case and worst case.plase expalin how to calculate the number of tracks.


Each allocation (primary or 2ndary) can take 1 to 5 extents to satisfy it.

Best Case:

(20 *1) + (20 * 15) = 320 trks w/10 directory blks for the PDS (taken from the primary).

In this scenerio you got each alloc in 1 extent. Lucky guy.

Worst Case:

20 * 1 (but you needed all 5 extents). That leaves 11 extents for 2ndary.
Now it takes 5 extents to satisfy the 1st 2ndary alloc and another 5 for the 2nd alloc. If you're still unlucky you can only get 1 trk for the 3rd.

Now you wind up with 20 primary and 41 2ndary or 61 total.

CORRECTION:

If the allocation cannot be filled with the remaining extent I beleive an abend (?37) will occur; you CANNOT allocate anything less than the requested 2ndary alloc as I mentioned above. If it is fulfilled w/1 extent the 2ndary tracks allocated are 60 (40 + 20) giving a total of 80 combined with the primary.

If you're REALLY unlucky you JCL out because you can't find enough DA space for the primary in 5 extents.
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 GDG clarifications JCL & VSAM 5
No new posts need clarifications regarding Array. COBOL Programming 1
Search our Forums:

Back to Top