Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us