Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : When you specified V for RECFM parameter, LRECL value is largest record in the file plus 4 bytes. These four bytes contain the actual length of each variable length record in the file

Google
 
Web mainframegurukul.com

SORT OUTFIL HEADER Example

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL
  View previous topic :: View next topic  
Author Message
murali gummadi
Member


Joined: 11 May 2006
Posts: 5

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu May 11, 2006 5:49 pm    Post subject: SORT OUTFIL HEADER Example Reply with quote

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
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

Frank Yaeger
Moderator


Joined: 18 Feb 2006
Posts: 812
Location: San Jose, CA

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu May 11, 2006 8:40 pm    Post subject: Reply with quote

Quote:
"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:

    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/software/sort/mvs/srtmpub.html
_________________
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
arrbee
Active Member


Joined: 24 Feb 2006
Posts: 144

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon May 15, 2006 7:27 am    Post subject: Reply with quote

Quote:

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.

Quote:

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.
_________________
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
Back to top
View user's profile Send private message Send e-mail
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
murali gummadi
Member


Joined: 11 May 2006
Posts: 5

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon May 22, 2006 2:35 pm    Post subject: Reply with quote

Hi,
Thanks arrbee.... for your answer
My problem was solved

Thanks and Regards
Murali
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Reshmi Remadevi
Member


Joined: 11 Aug 2006
Posts: 2

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Aug 11, 2006 12:53 pm    Post subject: 3.what is exact difference b/w SYSLIB And JCLLIB? Reply with quote

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.
_________________
With Regards,
Reshmi Remadevi
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon Feb 01, 2016 11:01 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-127.html