syncsort record count

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
valis
Member
Posts: 4
Joined: Fri Jan 12, 2007 9:35 pm

syncsort record count

Post by valis » Fri Jan 26, 2007 10:27 pm

My shop does NOT have DFSort. Is it possible for me to get the record count of a dataset using syncsort?

User avatar
LRevell
Member
Posts: 7
Joined: Tue Jan 30, 2007 9:06 pm
Location: Tallahassee, Florida

Post by LRevell » Tue Jan 30, 2007 9:45 pm

Yes. I do this to get the record count of tape files. Use the basic Copy All function, and copy it to a dummy output dataset. The printout will give you the record length.

mouse13
Member
Posts: 8
Joined: Mon Jul 19, 2010 6:02 pm

Post by mouse13 » Mon Jul 19, 2010 6:15 pm

you can get record count by fallowing

//ABC1HU17 EXEC PGM=ICEMAN
//SORTIN DD DSN=&HLQ..FTP.&TYPE..ABCNCY,DISP=SHR
//SORTOUT DD DSN=&HLQ..ABC1HUD0.ABCNCY.RECCNT,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(10,10),RLSE),UNIT=3390,
// DCB=(LRECL=80,BLKSIZE=0,RECFM=FB,DSORG=PS)
//SYSOUT DD SYSOUT=*
//SYSIN DD DSN=&HLQCTL..CTLCARD(ABC1HUCJ),DISP=SHR


ABC1HUCJ

OPTION COPY
OUTFIL REMOVECC,NODETAIL,
TRAILER1=(DATE,' FILE REC COUNT ,''',
COUNT=(M11,LENGTH=8),'''')

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others