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
 
help with counting dup fields in a file

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

New User


Joined: 14 May 2009
Posts: 9
Location: ohio

PostPosted: Fri Jan 15, 2010 8:32 pm    Post subject: help with counting dup fields in a file
Reply with quote

I need to count the combinations of fields in a file. this is the file:

0000000103..00000000907167961000060c001c
0000000103..00000000907167961000060c001c

the last 4 bytes that are packed are what I need to count
this is what I'm running but get a rc20:

Code:

//JS020   EXEC PGM=ICETOOL                           
//IN        DD DSN=in.TSOUR.Pdata.Q,     
//             DISP=(SHR,KEEP,KEEP)                 
//OUT       DD DSN=out.TSOUR.datta0.Q.SRT, 
//             DISP=(,CATLG,DELETE),             
//             UNIT=PERMDA,                         
//             VOL=(,,,5),                           
//             SPACE=(CYL,(500,250),RLSE)       
//DFSMSG   DD   SYSOUT=*
//TOOLMSG  DD   SYSOUT=*     
//TOOLIN    DD *                                     
OCCUR FROM(IN) LIST(OUT) NOHEADER BLANK NOCC -       
  ON(33,4,CH) ON(VALCNT)
/*
Back to top
View user's profile Send private message

Pkelly

New User


Joined: 14 May 2009
Posts: 9
Location: ohio

PostPosted: Fri Jan 15, 2010 9:41 pm    Post subject: Please anyone that can help -
Reply with quote

there is a fb input ofr 50 bytes. the fields start in cc 33 and each field is two bytes packed
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Jan 15, 2010 10:58 pm    Post subject:
Reply with quote

RC=20 would indicate that you are missing a needed DD statement, but that doesn't appear to be the case. When I run your job, I get RC=0. However, if you have two PD fields, you should use those as the ON fields instead of one CH field.

Code:

OCCUR FROM(IN) LIST(OUT) NOHEADER BLANK NOCC -       
  ON(35,2,PD) ON(37,2,PD) ON(VALCNT)


When I used this with the equivalent of your JCL, OUT had:

Code:

  60      1                 2   


If that's not what you want, then you need to explain more clearly what you do want.

If you do get a RC=20, please show your complete JES log.
Back to top
View user's profile Send private message
Pkelly

New User


Joined: 14 May 2009
Posts: 9
Location: ohio

PostPosted: Fri Jan 15, 2010 11:12 pm    Post subject: Reply to: help with counting dup fields in a file
Reply with quote

maybe we do not have the icetool here at work. i use synsort all the time
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Sat Jan 16, 2010 12:11 am    Post subject:
Reply with quote

I'm a DFSORT developer. DFSORT and Syncsort are competitive products. I'm happy to answer questions on DFSORT and DFSORT's ICETOOL, but I don't answer questions on Syncsort.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jan 16, 2010 12:31 am    Post subject:
Reply with quote

Hello,

There is something called ICETOOL on your system or you would not get the rc=20 - there would be an abend. . . On many Syncsort systems, ICETOOL is an alias for SYNCTOOL.

If you want someone to help, you need to post the diagnostic informaton you were shown when the job was run.
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 Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm

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