Page 1 of 1

JOBLIB, JCLLIB & STEPLIB in JCL

PostPosted: Sat Jul 31, 2010 6:27 pm
by ballaravi
hi,
please help me,my questions are...

1) what is difference between "JOBLIB" & "JCLLIB" & "STEPLIB", I need with example,so i can understand better .

2) what is difference between "SYSPRINT" & "SYSOUT".

Thank you....

Re: Doubt on lib commands

PostPosted: Sat Jul 31, 2010 7:52 pm
by Robert Sample
1. JOBLIB is defined at the start of the job before any EXEC and contains the load libraries to be searched for the entire job. STEPLIB is defined after an EXEC and applies only to that step. It also contains the load libraries to be searched for the step. JCLLIB is defined at the start of the job before any EXEC and contains the procedure (JCL) libraries to be searched for any procedures (that is, anything not EXEC PGM=) or INCLUDE members.

JCLLIB can be looked at by a human and it is readable; load libraries are not.

2. PRINT versus OUT. Both are used as DD names for output although they can be used for anything you want, really. IBM utilities often use SYSPRINT for their messages; COBOL uses SYSOUT for the default DISPLAY device. Other than utilities, though, they are not reserved names and can be used by an application programmer if desired.

Re: Doubt on lib commands

PostPosted: Sun Aug 01, 2010 1:03 am
by steve-myers
//JOBLIB and //STEPLIB are similar in that both specify one or more load libraries that contain programs that are not part of the system. As far as I know //JOBLIB has always been in OS/360 type systems. //STEPLIB appeared rather late in OS/360 (release 17, I think it was).

SYSPRINT is a DD name commonly used to specify a data set containing data that is suitable for printing on line oriented printers.

SYSOUT has multiple meanings.
  • It is a keyword on a DD statement used to specify an output class, the name of a supplemental program used when the data set is actually printed, and the name of a form used when printing the data set. For better or worse some of this has been subverted for other purposes. One fairly popular output management product uses the SYSOUT program name to specify a report name within the output management system.
  • It is a DD name used by some programs. Most sort programs use SYSOUT as their primary message data set.
  • It is a noun used as a generic reference to data sets intended to be printed; "my program prints messages to SYSOUT," or "check SYSOUT."

Re: Doubt on lib commands

PostPosted: Mon Aug 09, 2010 8:08 pm
by ballaravi
Thank u very much :)