Page 1 of 1

SORT OUTFIL HEADER Example

Posted: Thu May 11, 2006 5:49 pm
by murali gummadi
Hi every one,
I am happy to join with this family,and plz welcome me.

1.Can any one please give me codefor

"how do we include Header and Taylor in sort command?


2.How can i get the data from tape dataset?

3.what is exact difference b/w SYSLIB And JCLLIB?

4.I Have 10 files in a step and every time when i need to run this job i want to see 9,10 files out put first?how can code the jcl for thais?remember that every file excution depends on the previous file excution(it means all input files excution must be in order)?

5.I have faced the problem with dead lock,that is if dead lock occures to my program, so i want to know that who was trying to acess the same resources which are requested by me?

plz help me out in this regard

Warm Regards,
Murali gummadi

Posted: Thu May 11, 2006 8:40 pm
by Frank Yaeger
"how do we include Header and Taylor in sort command?
I think you mean Header and Trailer. You can use DFSORT's OUTFIL statement to include header and trailer records of various types. For example, you can use the HEADER1 parameter to include report header records and the TRAILER1 parameter to include report trailer records. For example:

Code: Select all

    OPTION COPY
    OUTFIL HEADER1=('This is line1 of the report header',/,
       'This is line2 of the report header'),
      TRAILER1=('This is line1 of the report trailer',/,
       'This is line2 of the report trailer')


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:

www.ibm.com/servers/storage/support/sof ... tmpub.html

Posted: Mon May 15, 2006 7:27 am
by arrbee
2.How can i get the data from tape dataset?
Get the attributes (RECFM,LRECL etc) of the TAPE DSN. Use IDCAMS REPRO to create a flat file out of it.
5.I have faced the problem with dead lock,that is if dead lock occures to my program, so i want to know that who was trying to acess the same resources which are requested by me?
Use the Master job sysout info to find out the job or program causing the contention.

Posted: Mon May 22, 2006 2:35 pm
by murali gummadi
Hi,
Thanks arrbee.... for your answer
My problem was solved

Thanks and Regards
Murali

3.what is exact difference b/w SYSLIB And JCLLIB?

Posted: Fri Aug 11, 2006 12:53 pm
by Reshmi Remadevi
JCLLIB tells the system to look in system-procedure libraries,installation defined libraries as well as private libraries in the order given,

//lib JCLLIB ORDER(lib1,lib2,..)

Private libraries are specified using STEPLIB.It is a DD stmt.

//step1 STEPLIB DD DSN='DSNAME',DISP=SHR

Hope it cleared your doubt.

Topic deleted by Admin

Posted: Mon Feb 01, 2016 11:01 pm
by academyindia4
<< Content deleted By Admin >>