Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
JES2 job size field matching Windows disk size

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
SRICOBSAS

New User


Joined: 07 Dec 2015
Posts: 18
Location: India

PostPosted: Tue Sep 05, 2017 5:49 pm    Post subject: JES2 job size field matching Windows disk size
Reply with quote

Hi,

I am a J2EE developer and I am involved in a project for Java interfaces to z/OS JES2 job spool.

I work for a vendor company whose client has z/OS v 1.10 installed on their end with JES2 as the job subsystem environment.

Neither anyone in my team nor in my company directly interact with the client's z/OS team on a technical basis. For our projects the client provides us APIs (to retrieve info from JES2), screenshots, joblogs e.t.c with which we can decide what JES2 fields / parameters / info we need for our Java tools

I would be grateful if the z/OS experts can help me out on an issue I am stuck with (there is no one here who has knowledge of z/OS or JES2)

REQUIREMENT: I need to populate an excel file with list of all sdsf jobs and for each job:

the total CPU time consumed
total no of lines / records written AND
the actual DASD disk size they occupy

Based upon the above certain recommendations have to be made.

For the CPU time I have APIs which can give me the "ST-TIME" and "END-TIME"

A JES2 field "Rec-Cnt" gives me the total no of lines / records written

And lastly for the total job size (.i.e total size occupied by all datasets in the JES2 job) I saw "Byte-Cnt" for each dataset (JESMSGLG / JESJCL / JESYSMSG / SYSPRINT e.t.c).

PROBLEM: Total of "Byte-Cnt" does not match total of Windows disk size for all downloaded individual JES2 job datasets.

For example totalling the "Byte-Cnt" for a JES2 job log gives me 313 KB. I called another API which actually downloaded the individual datasets and totalled their Windows disk sizes. This total is 503 KB

There is another API which combines all the dataset content into 1 file (the API description is "Print data set using Open Print Data Set panel"). This combined job log is much higher in size- 607 KB

So I am facing a mismatch between the SDSF reported size and the actual Windows disk size.

Everytime I populate the Excel I cannot download the individual JES2 job datasets and calculate their Windows disk sizes. I am looking for a JES2 field / column which can give me the correct DASD disk size (should match the Windows disk sizes as and when a job is downloaded)

SOME THOUGHTS: I have the dataset record count with me. If there is a JES2 field which can give me the record length (LRECL or something like that) for all the datasets in the JES2 job then I can multiply them with the record count and try getting an accurate job size.

Would appreciate any help in this regard.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10350
Location: italy

PostPosted: Tue Sep 05, 2017 6:33 pm    Post subject: Reply to: JES2 job size field matching Windows disk size
Reply with quote

Quote:
I work for a vendor company whose client has z/OS v 1.10 installed on their end with JES2 as the job subsystem environment.

pretty outdate system icon_cool.gif
Quote:
... (there is no one here who has knowledge of z/OS or JES2)...


then Your company has no reason to handle business on a platform for which it does not have the knowledge

we reply
ON OUR OWN TIME
FOR FREE

Your organisation gets paid for its services we do not icon_evil.gif
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 585
Location: The Universe

PostPosted: Tue Sep 05, 2017 7:03 pm    Post subject: Re: JES2 job size field matching Windows disk size
Reply with quote

SRICOBSAS wrote:
... SOME THOUGHTS: I have the dataset record count with me. If there is a JES2 field which can give me the record length (LRECL or something like that) for all the datasets in the JES2 job then I can multiply them with the record count and try getting an accurate job size.

Would appreciate any help in this regard.

It cannot be done. Each logical data set has an LRECL attribute which describes the maximum length of each logical record. However, JES2 trims trailing blanks from each logical record before it stores the record in its SPOOL data set. So each logical record potentially has a different length, so job LRECL (which does not exist, anyway) times output lines is meaningless. Each line has a 2 byte length attribute (if I remember correctly) that counts against its storage space - JES does not use UNIX style line termination characters - and most (if not all) records have a carriage control character, which your application may see, that also counts against the byte count.

Another potential problem is in data sets stored as "advanced function printing" (AFP) data sets. AFP is, roughly speaking, the IBM sort of equivalent to PDF, though it is much more complex. In these data sets each "logical record" usually amounts to one physical output page. And there may be non-printing records in the data set.
Back to top
View user's profile Send private message
SRICOBSAS

New User


Joined: 07 Dec 2015
Posts: 18
Location: India

PostPosted: Tue Sep 05, 2017 9:50 pm    Post subject: Reply to: JES2 job size field matching Windows disk size
Reply with quote

Hi All,

I figured out the problem. Issue was when the job spool datasets get downloaded on Windows there are extra spaces at the end of each line which increase the byte count. I patiently deleted all the trailing blanks from each downloaded dataset and ran a byte count on MS Word and the sizes matched with the JES2 Byte-Cnt values.

I thank Steve-Myers for several valuable inputs he had given:

JES2 trims trailing blanks from each logical record
JES2 appends a carriage control character which is 2 bytes (at the end)
JES2 stores datasets in AFP (Advanced Function Printing)
In AFP each logical record usually amounts to 1 physical output page.

I will keep all these in mind going forward

Enrico wrote: "then Your company has no reason to handle business on a platform for which it does not have the knowledge".....

I wish my management thought on the same lines. Small vendors like my company gleefully take up any small project they come across forcing their employees to upgrade their knowledge. They dont wish to invest in specialists who come at a high price.

In any case I thoroughly searched Google before I posted my topic here. Though of course I missed out checking on the simple trailing spaces thing.

Anyway requesting the moderator to close this thread.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10350
Location: italy

PostPosted: Wed Sep 06, 2017 1:13 pm    Post subject: Reply to: JES2 job size field matching Windows disk size
Reply with quote

what look and probably are harsh comments are seldom addressed to the TS
who, as in this case is just the victim, not an active partner in crime icon_biggrin.gif
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
No new posts Matching and unmatched records!! Vignesh Sid SYNCSORT 3 Thu Nov 09, 2017 11:22 am
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us