MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

count with outrec

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
ranga_subham
Intermediate


Joined: 31 Jan 2006
Posts: 255
Topics: 72

PostPosted: Thu Jun 10, 2010 8:24 am    Post subject: count with outrec Reply with quote

Hi,

Is it possible to use COUNT (of ICETOOL) with OUTREC option to write the count at some other position instead of starting position.

I tried below SORT card but it always writes the count to starting position.

Code:

//STEP0001 EXEC PGM=ICETOOL 
//TOOLMSG  DD SYSOUT=*       
//DFSMSG   DD SYSOUT=*       
//IN       DD DSN=INPUT-FILE,
//            DISP=(SHR,KEEP,KEEP)                   
//OUT      DD SYSOUT=*
//TOOLIN   DD *
  COUNT FROM(IN) USING(SRT1) WRITE(OUT) DIGITS(6)
//SRT1CNTL DD *                 
  INCLUDE COND=(21,2,CH,EQ,C'01')
/*                               


Thanks.
_________________
Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Jun 10, 2010 10:37 am    Post subject: Reply with quote

ranga_subham,

You can use the parm TEXT on COUNT operand which lets you specify a string of max 50 bytes.
Code:

//TOOLIN   DD *                                         
  COUNT FROM(IN) USING(SRT1) WRITE(OUT) DIGITS(6) -     
  TEXT('                    ')                         


Read the detailed explanation of the TEXT here

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA40/6.5.1
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ranga_subham
Intermediate


Joined: 31 Jan 2006
Posts: 255
Topics: 72

PostPosted: Thu Jun 10, 2010 10:49 am    Post subject: Reply with quote

Ok...I tried this card but it is masking text on output digits Confused
_________________
Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Jun 10, 2010 10:55 am    Post subject: Reply with quote

ranga_subham wrote:
Ok...I tried this card but it is masking text on output digits Confused


huh? what are you talking about? show me the complete sysout and output
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ranga_subham
Intermediate


Joined: 31 Jan 2006
Posts: 255
Topics: 72

PostPosted: Thu Jun 10, 2010 11:06 am    Post subject: Reply with quote

sorry.......my mistake in coding.........it works Smile
_________________
Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group