How do you get Count of records in a PS file using SORT JCL ?

Showing Answers 1 - 3 of 3 Answers

Vertika

  • Mar 24th, 2015
 

Use the following Sort Card:
SORT FILEDS=COPY
OUTFIL FILES=OUT,TRAILER1=(1:COUNT),REMOVECC,NODETAIL

  Was this answer useful?  Yes

bharath s

  • Sep 14th, 2017
 

//TOOLIN DD *
COUNT FROM (IN)
/*

Code
  1. //TOOLIN DD *

  2.   COUNT FROM (IN)

  3. /*

  Was this answer useful?  Yes

Bharath s

  • Sep 14th, 2017
 

SORT FILEDS=COPY
OUTFIL FILES=OUT,TRAILER1=(1:COUNT),REMOVECC,NODETAIL

Code
  1. SORT FILEDS=COPY

  2. OUTFIL FILES=OUT,TRAILER1=(1:COUNT),REMOVECC,NODETAIL

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions