WHAT IS THE UTILITY TO PRINT OUT RECORDS OF A FILE



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

WHAT IS THE UTILITY TO PRINT OUT RECORDS OF A FILE

Postby chatwithbee » Mon Dec 08, 2008 12:22 pm

here is the question
Print off the first 11 records of this file (#9), double spaced.
i was told there is utility to do that. what is it and what is the code.
chatwithbee
 
Posts: 7
Joined: Tue Dec 02, 2008 7:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: WHAT IS THE UTILITY TO PRINT OUT RECORDS OF A FILE

 

Re: WHAT IS THE UTILITY TO PRINT OUT RECORDS OF A FILE

Postby Frank Yaeger » Mon Dec 08, 2008 10:05 pm

One utility you can do this with is DFSORT using a job like the one below. I assumed your input file has RECFm=FB and LRECL=80, but the job can be changed appropriately for other attributes:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (FB/80)
//SORTOUT DD SYSOUT=*
//SYSIN    DD    *
  OPTION COPY,STOPAFT=11
  OUTFIL REMOVECC,BUILD=(/,1,80)
/*
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
User avatar
Frank Yaeger
Global moderator
 
Posts: 1080
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post