Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us