View previous topic :: View next topic
|
Author |
Message |
lakshmi_ta
New User
Joined: 23 Aug 2006 Posts: 13
|
|
|
|
Hi Friends,
I would like to know how to write control card for SYNCSORT, output of SYNCSORT would be in 3 different files.
Regards,
Lakshmi |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Quite similar to DFSORT, with FNAMES or FILES in the OUTFIL control statement.....Check your manual..... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you post what your input looks like and what you want in the 3 output files someone may have suggestions.
As was previoiusly posted, you will find the info in the manuals. If you read something that is not clear, please post your questions here. |
|
Back to top |
|
|
lakshmi_ta
New User
Joined: 23 Aug 2006 Posts: 13
|
|
|
|
Hi,
How can I write the out put of syncsort in 3 differrent files? Anybody can help me??
Lakshmi |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Wasn't the answer to this question answered to your satisfaction? |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
William Thompson wrote: |
Quite similar to DFSORT, with FNAMES or FILES in the OUTFIL control statement.....Check your manual..... |
Have you checked the manual? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Would these three output files all be the same data, or would there be some form of data selection to determine which data resides in each of the output files.
Is your input data FB or VB ? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello lakshmi_ta,
If you are not willing to post information about your requirement, we can make few good suggestions.
You need to re-read your topic all the way thru and provide the requested information.
People are trying to help you, but you are not making yourseld "help-able". The most important part of getting usable answers here is to present a clear, detailed question (with example data).
You need to show some input (that covers the kinds of data your process will encounter), the rules for processing the input, and what you expect the output to be from that input.
It is not hard to do, but it does mean that you have to put in a bit of effort. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Well, he did ask the question a second time this morning...... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Maybe the next round will include some usable details. . .
We can only hope. . . . |
|
Back to top |
|
|
lakshmi_ta
New User
Joined: 23 Aug 2006 Posts: 13
|
|
|
|
Hi friends,
Thank you for your interest. Iam just attending the interviews as a mainframe developer. I don't have any manuals. In my last interview, they asked me the control card to write the output of a sync sort in three files, they didn't tell/ask me about the file structure and all.
Hope you can understand me.
Regards,
Lakshmi |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Lakshmi,
Quote: |
they didn't tell/ask me about the file structure and all. |
How anyone in the world could help you without the file structure? Though it was in interview, without knowing the file attributes, condition for spliting the files...... none can write a control card/program. |
|
Back to top |
|
|
lakshmi_ta
New User
Joined: 23 Aug 2006 Posts: 13
|
|
|
|
why can't you explain me with some example?? take a file with rf=fb,lrecl= 132,
the condition will be like, all the names starting with L should be in one file, K will be in another and in a 3rd file all the names should be with V. assume, all the files have the same attributes, assume the charector position from 4,1.
Lakshmi |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
cool.
Use OUTFIL with INCLUDE cond |
|
Back to top |
|
|
balakrishna reddy
Active User
Joined: 13 Jul 2007 Posts: 128 Location: Guntur
|
|
|
|
hi lakshmi,
Quote: |
the condition will be like, all the names starting with L should be in one file, K will be in another and in a 3rd file all the names should be with V. assume, all the files have the same attributes, assume the charector position from 4,1.
|
your control card will look like this
Code: |
SORT FIELDS=COPY
OUTFIL FILES=01,INCLUDE=(4,1,CH,EQ,C'L')
OUTFIL FILES=02,INCLUDE=(4,1,CH,EQ,C'K')
OUTFIL FILES=03,INCLUDE=(4,1,CH,EQ,C'V')
|
If you need any clarification dont hesitate to ask. |
|
Back to top |
|
|
lakshmi_ta
New User
Joined: 23 Aug 2006 Posts: 13
|
|
|
|
Thank you buddies
Lakshmi |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome, Lakshmi
Going forward, it is best to post interview questions in the Interview Questions section of the forum.
If we understand that the question is a generalization, we won't fuss so much about the details.
I believe you would have received your answer much more quickly if we had understood your situation.
Quote: |
I don't have any manuals |
Many of the manuals that have the info that interviewers ask about are available via the "Manuals" link at the top of the web pages.
We're here when you have questions. |
|
Back to top |
|
|
|