Results 1 to 3 of 3

Thread: Jcl

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Answers
    1

    Jcl

    What is the use of INCLUDE statement in JCL?

    Pavan reddy


  2. #2
    Junior Member
    Join Date
    Sep 2008
    Answers
    4

    Re: Jcl

    Hi
    this is Radhika...
    include is use to extract the selected fields from input
    dataset and copy to ouput dataset using sort utility.

    //SORTTA EXEC
    PGM=SORT
    //SYSIN DD
    *
    SORT FIELDS=COPY
    INCLUDE COND=
    (52,9,CH,EQ,C’123456789’)

    /*

    //SORTIN DD DSN=…,DISP=SHR
    //SORTOUT DD DSN=…
    //SYSOUT DD
    SYSOUT=*
    //
    The INCLUDE control statement is used to establish
    Selection criteria for the records to be included in the
    Output dataset.

    Regards,
    radhika


  3. #3
    Junior Member
    Join Date
    Sep 2008
    Answers
    1

    Re: Jcl

    And for additional information,you can use

    OMIT COND=(34,3,CH,EQ,C'MMM')
    to omit ..

    INREC FIELDS=(1,50,75,25,125,50)

    OUTREC FIELDS=(1,50,75,25,125,50)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact