View previous topic :: View next topic
|
Author |
Message |
guptaa
New User
Joined: 22 Feb 2007 Posts: 10 Location: pune
|
|
|
|
hi
i want to create an output file while sorting the records so under DATA DIVISION in File Section i am giving SD clause.
Can any one suggest me the syntex for that
i am giving it as
SD DIALONE-FILE
RECORD CONTAINS 760 CHARACTERS
DATA RECORD IS DIALONE-REC PIC X(760).
please tell me whatall changes i need to do there. |
|
Back to top |
|
|
guptaa
New User
Joined: 22 Feb 2007 Posts: 10 Location: pune
|
|
|
|
hi murali
can u tell me what all changes are required in the above syntex.
the error message i am getting is
""DIALONE-FILE" was defined as a type that was invalid in this context." and
"Expected a record-name, but found "DIALONE-REC". The statement was discarded." |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
For starers....
Code: |
SD DIALONE-FILE
RECORD CONTAINS 760 CHARACTERS
DATA RECORD IS DIALONE-REC
01 DIALONE-REC PIC X(760). |
I really do not think that you are going to get what you want this way.....
Read the language reference: Data Division--file description entries
and the programming guide: Sorting and merging files |
|
Back to top |
|
|
guptaa
New User
Joined: 22 Feb 2007 Posts: 10 Location: pune
|
|
|
|
i have used the above code but still getting the same error. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Not enough information, try again..... |
|
Back to top |
|
|
guptaa
New User
Joined: 22 Feb 2007 Posts: 10 Location: pune
|
|
|
|
is there any specific condition needs to be handle while opening or closing such files.. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
guptaa wrote: |
i have used the above code but still getting the same error. |
I don't think so, what error with what syntax?
Quote: |
is there any specific condition needs to be handle while opening or closing such files.. |
You don't open or close SD files, the sort does.
Please:
and
Quote: |
Not enough information, try again..... |
|
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
Ashish Gupta,
Could you please give the Error code? |
|
Back to top |
|
|
guptaa
New User
Joined: 22 Feb 2007 Posts: 10 Location: pune
|
|
|
|
while compiling i am getting return code 12 and message is
"3560 IGYPS2143-S Expected a record-name, but found "DIALONE-REC". |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Hopeless..... |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
Gupta,
The same syntax is working fine in my Env..,
I am using IBM ENTERPRISE COBOL FOR Z/OS 3.4.1 |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello guptaa,
If you want help from the forum, you have to do a more complete job explaining/posting what is not working as you want.
If you post the SELECTs, the FDs/SDs, and the OPEN/CLOSE and SORT statements, we may be better able to give you assistance rather than continuing to "toss the ball" back and forth, |
|
Back to top |
|
|
|