INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Jobs from Indeed

ICETOOL: DIsplay Sectional report

ICETOOL: DIsplay Sectional report

(OP)
Hi,

I have 5 files with different currency codes at different places.
My requirement is to print a report to display the count of different currency codes in files sectioned on files.

So File1:

CODE --> COBOL

XXXXGBPXXX
XXXXGBPXX1
XXXXEURXXX 
File2:

CODE --> COBOL

EURXXXXXXXXXXXX 


Output

CODE --> COBOL

File1
GBP 2
EUR 1
File2
EUR 1 

One way to do this I could think of is merge these files with a Seq Number in the end and reformat the records so that the currency codes are at same position and create a Temp file. The File number is on 101,2 and Currency Code is on 87,3 like this:

CODE --> COBOL

XXXXXXXXXXXX GBP 01
XXXXXXXXXXXX EUR 01
XXXXXXXXXXXX EUR 02 

On this file I was using ICETOOL card like this:

CODE --> COBOL

//TOOLIN   DD *                                     
  DISPLAY FROM(SORTIN1) LIST(SORTOP1) -             
   ON(001,102,CH) -                                 
   BTITLE('STATS FOR FILE') BREAK(101,002,CH)       
  OCCUR FROM(SORTIN1) LIST(SORTOP1) -               
   ON(087,003,CH) ON(VALCNT) 

The output I am getting is like this:

CODE --> COBOL

STATS FOR FILE  01
XXXXXXXXXXXX GBP 01
XXXXXXXXXXXX EUR 01
STATS FOR FILE  02
XXXXXXXXXXXX EUR 02

DKK                    000000000000002 
EUR                    000000000000001 

How do I make the occurs to run inside every section of Display?
Is there any better way to achieve this?

Thanks,
Rajesh


RE: ICETOOL: DIsplay Sectional report

This being a COBOL forum you are unlikeley to get DFSort answers. Why not try one of the mainframe forums (and post in the DFSort section - not the JCL section).


Nic

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close