IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Split large file between groups


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nehal Soni

New User


Joined: 06 Jun 2008
Posts: 8
Location: Mumbai

PostPosted: Sun Mar 08, 2009 6:41 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sun Mar 08, 2009 6:55 pm
Reply with quote

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
View user's profile Send private message
Nehal Soni

New User


Joined: 06 Jun 2008
Posts: 8
Location: Mumbai

PostPosted: Sun Mar 08, 2009 7:20 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Sun Mar 08, 2009 8:34 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Mar 09, 2009 2:13 am
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Mar 09, 2009 5:16 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Mar 09, 2009 5:59 am
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top