Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Split large file between groups

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Split large file between groups
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: 2150
Location: At my coffee table

PostPosted: Sun Mar 08, 2009 6:55 pm    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Sun Mar 08, 2009 8:34 pm    Post subject:
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:

http://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

Site Director


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

PostPosted: Mon Mar 09, 2009 2:13 am    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Mon Mar 09, 2009 5:16 am    Post subject:
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

Site Director


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

PostPosted: Mon Mar 09, 2009 5:59 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us