Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Capturing IDCAMS Record Counts

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Richbob

New User


Joined: 13 Apr 2006
Posts: 1

PostPosted: Thu Sep 11, 2008 12:47 am    Post subject: Capturing IDCAMS Record Counts
Reply with quote

I am trying to capture records counts from an IDCAMS job step. I can do this from a sort utility, using an OUTFIL parameter; but I don't see any good way to do it with an IDCAMS job step.

What I want to do is copy the count that is seen in the SYSOUT to a file, that can be read by another program.

Any ideas?
Back to top
View user's profile Send private message

harinadh

New User


Joined: 01 Sep 2004
Posts: 18

PostPosted: Thu Sep 11, 2008 1:46 am    Post subject: Reply to: Capturing IDCAMS Record Counts
Reply with quote

You can get the record count details using SORT utility using the information available in the SYSOUT dataset. Point the SYSOUT information to a dataset and using INCLUDE COND you can get the information.
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Thu Sep 11, 2008 1:54 am    Post subject:
Reply with quote

i would do something like this: (assuming u are working on VSAM datasets)..

Code:

//SDECOLL EXEC PGM=IDCAMS                           
//SYSPRINT DD DSN=&&TMP1,                           
//            UNIT=SYSDA,                           
//            DISP=(NEW,PASS,),                     
//            SPACE=(TRK,(15,15),RLSE),             
//            DCB=(LRECL=300,BLKSIZE=24000,RECFM=FB)
//SYSIN DD *                                         
 LISTCAT ENT(XXX.KSDS) ALL       
/*                                                   
//EXTRTDT1 EXEC PGM=SELCOPY  (OR OTHER FILE TAILORING UTILITY)                         
//INDD      DD DSN=&&TMP1,DISP=(OLD,PASS)             
//OUTDD     DD DSN=XXX.WHAT.EVER,                           
//             UNIT=SYSDA,                           
//             DISP=(NEW,KEEP,KEEP),                     
//             SPACE=(TRK,(15,15),RLSE),             
//             DCB=(LRECL=300,BLKSIZE=24000,RECFM=FB)
//SYSPRINT  DD SYSOUT=*                               
//SYSIN DD *                                         
   WRITE YOUR LOGIC HERE to extract REC-TOTAL from the &&TMP1...             
/*                                                   


but it would be helpful to know why you want to do this using IDCAMS.. what's the business requirement..
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 11, 2008 11:32 am    Post subject:
Reply with quote

Especially as the IDCAMS record count is only updated at sucessful close of dataset.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts IDCAMS Allocate & Repro pahiker JCL & VSAM 9 Thu Aug 24, 2017 7:28 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us