View previous topic :: View next topic |
Author |
Message |
diwendu Beginner
Joined: 24 Mar 2004 Posts: 1 Topics: 1 Location: Indore
|
Posted: Wed Mar 24, 2004 1:51 am Post subject: Help about generating a report |
|
|
Hi,
I need some help regarding generating a report without using Easytrieve from say 5 different datasets.I want to take input from 1 dataset and depending on that input I need to prepare a key. From that key I am going to fetch the records from different datasets.
Suppose there are 90 fields in the dataset from which a user can select any field an based upon that I have to bring information from all the five datasets.
My concerns are
1)Without using CICS and REXX is that possible through only cobol
2) How can I take input from user either through JCL or Through file
3) Is Dynamic input possible
4) Validation of each field is possible if dynamic entry is made. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Mar 24, 2004 10:03 am Post subject: |
|
|
Diwendu,
Quote: |
1)Without using CICS and REXX is that possible through only cobol
|
I don't see how CICS can solve the problem here. Everything can be done in one single pgm within cobol.
The following will answer all your queries 2 thru 4.
Pass the key fields via parm to the program. The program will read in the parm and the cobol will have 5 internal sorts. Depending on the key fields passed you can sort all the input files on the key fields.
Once sorted , it is an easy task to match the files.
Read the master file and process all the other files until end of master file.
If you think internal sorts are a resource hog, then you can sort the files outside by accepting the parms.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|