View previous topic :: View next topic
|
Author |
Message |
satish.ms10
Active User
Joined: 10 Aug 2009 Posts: 184 Location: India
|
|
|
|
Hi All,
I am in need of submitting job from easytrieve program. Can this be possible?
My requirement is, I need to submit number of jobs based on my input records. For each input record I need to create a separate report. Currently I am doing this manually like if there are 10 input records then I will edit the and submit the ten times.
We are not allowed to use REXX program. So I am left with Easytrieve option.
Can anyone help me in this regard.
Thanks in advance. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
I'm not exactly sure what you are asking.
You have an input file with 10 records. Each of those records needs to generate a report.
Is that it?
Is it the same report, or 10 different reports, or some mix? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
using <SORT> or PL/I or COBOL You would simply write 80 bytes card images of the JCL to a sequential dataset whose DD would look like ...
Code: |
//<ddname> DD SYAOUT=(<approved sysout class>,INTRDR) |
( see the jcl manuals - ask Your support, for the lowly details )
why not use the same approach with easytrieve |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
What is that Enrico? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
just a test to see if You were paying attention |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
Back to top |
|
|
satish.ms10
Active User
Joined: 10 Aug 2009 Posts: 184 Location: India
|
|
|
|
Hi,
Thank you all for your kind reply.
Hi Bill,
Yes, I need to create N no. of different reports for the N no. of input records. I planned to create job with 250 steps for 250 input records and submit the job and create another job for another set of 250 records.
This I need to do in easytrieve program. Any Advise Please.
Hi Enrico,
I will see the COBOL logic and let you know.
Thanks, |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Quote: |
Is it the same report, or 10 different reports, or some mix? |
Here, I mean is the report the same format, going to, for instance. up to 250 external clients, or are the 250 reports different in the format of their content?
The reason for asking is to avoid all the tushing about with submitting extra jobs. |
|
Back to top |
|
|
satish.ms10
Active User
Joined: 10 Aug 2009 Posts: 184 Location: India
|
|
|
|
Hi Bill,
Report format is same for all the clients.
Thanks, |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Print 250 copies, and let output distribution take care of sending the stuff to the clients. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Following on from Peter, how do you do your report distribution? Do you mean you want different distribution codes on the 250 jobs you are thinking of submitting? Different distribution methods (some print, some electronic, etc)?
You can re-start page numbers in reports. If you want a "banner page" between clients, you can do that with a report procedure. If you are generally dealing with output for multiple clients, there is normally a "site" method to do it, rather than everyone inventing their own method. If all client output results in up to 250 additional jobs being submitted, that would be weird...
So, more detail from your end please. Is it the only multi-client report from your site? Is it just the first of potentially many? How are the reports to be actually distributed? Anything else you feel might be helpful. |
|
Back to top |
|
|
Jose Mateo
Active User
Joined: 29 Oct 2010 Posts: 121 Location: Puerto Rico
|
|
|
|
Good afternoon to all!
This is a real twister, first you that the reports are different for different clients and then you mention that all reports have the same format. am not not clear but 'yes' you could do it thru Easytrieve. Thru Easytrieve you could have multiple jobs to process multiple files in one run or you could have one job process N records generating up to 255 reports in one run. |
|
Back to top |
|
|
Jon D Knutson
New User
Joined: 27 Jun 2012 Posts: 4 Location: usa
|
|
|
|
Have you tried submitting to the internal reader? |
|
Back to top |
|
|
|