View previous topic :: View next topic
|
Author |
Message |
Nehal Soni
New User
Joined: 06 Jun 2008 Posts: 8 Location: Mumbai
|
|
|
|
hi,
I have a requirement of dividing my input file into number of files using dynamic allocation , i have tried with sort card ,but too long
then I read all the posts that contained 'PUTENV' utility and used the same , but now I am getting an error in compilation saying
''IGYPS2160-S The "ADDRESS OF" operand "FILE-NAME" was found as the sending operand of a "SET" statement, but was not a "LINKAGE SECTION" item, or was a level-66 or level-88 item. The statement was discarded.
I dont know how to solve it , is there any problem with the compile option that I have selected
2) I did not found any specific PDF describing this utility 'PUTENV' , in this site , could you please tell me where i can find it
Please help |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Nehal Soni wrote: |
I have a requirement of dividing my input file into number of files using dynamic allocation , i have tried with sort card ,but too long |
Very simple with sort, what was the problem? And what is "too long"?
Quote: |
''IGYPS2160-S The "ADDRESS OF" operand "FILE-NAME" was found as the sending operand of a "SET" statement, but was not a "LINKAGE SECTION" item, or was a level-66 or level-88 item. The statement was discarded. |
What statement?
Quote: |
I dont know how to solve it , is there any problem with the compile option that I have selected |
Without seeing the statement, we don't either. Compile option? |
|
Back to top |
|
|
Nehal Soni
New User
Joined: 06 Jun 2008 Posts: 8 Location: Mumbai
|
|
|
|
here is the detailed requiremet
--------------------------------------------------------------------------------
hi,
I have a file in the following format having headers and trailers for every group.
main header 1
main header 2
group1starts
rec1
rec2
group1end
group2 start
rec1
rec2
rec3
group2 ends
group3 starts and so on
main trailor 1
main trailor 2
while doing FTP if the bytes to transfer is more than 75mbytes the job abends, I need to split the file in numbers of files if it exceeds 75mbytes
but when I am splitting I have to make sure that no group is divided in two different file. all the records of one specific group should be in one file only and all the files that i divide into should have both the main header and main trailor with it
so it is not simple with sort , but if you still have any solution with sort
it will be very useful for me |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
Very simple with sort, what was the problem? And what is "too long"? |
No, it isn't. This has already been discussed in Nehal's thread at:
ibmmainframes.com//viewtopic.php?t=38468
I'm moving this back to the COBOL Forum since the sort method has already been discussed and Nehal is now asking a COBOL question. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I have a requirement of dividing my input file into number of files using dynamic allocation |
Why do you believe this is a requirement? I suspect that the requirement is to write the appropriate output file(s) and there is no true requirement for creating these files dynamically.
Suggest you implement the appropriate number of fd's to handle the maximum volume and proceed from there. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
dick scherrer wrote: |
Suggest you implement the appropriate number of fd's to handle the maximum volume and proceed from there. |
Stupid me, but I just can't remember, does a close/open advance the generation level? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
does a close/open advance the generation level |
Not that i'm aware.
I'm disconnected until tomorrow, but it might be an interesting experiment |
|
Back to top |
|
|
|