READ WORK FILE 2 RECORD #CW0002L1-WORK-RECORD
END-ALL
SORT BY #CW0002L1-CA-TYPE #CW0002L1-CA-NO
#CW0002L1-CUST-NO
#CW0002L1-SAFEKEEP-ACCT #CW0002L1-NOM-SUB
#CW0002L1-ASSET-ID
USING #CW0002L1-HOLDING-DATE #CW0002L1-AWAITING-DELIVERY
#CW0002L1-AWAITING-RECEIPT #CW0002L1-IN-DEPOSIT
#CW0002L1-AT-VAULT #CW0002L1-TRADING-POSITION
#CW0002L1-AT-REGISTRAR
End-SORT.
Can anyone tell me what is the use of end-all statement and also how this sort statement will work?
What is the meaning of Using class on Sort statement ?
-
- Posts: 90
- Joined: Sun Mar 14, 2010 5:12 pm
- Skillset: Natural,Adabas,jcl
- Referer: friend
- RGZbrog
- Posts: 101
- Joined: Mon Nov 23, 2009 1:34 pm
- Skillset: Natural, Adabas, Predict, Natural Security, Construct, EntireX, SPoD, NaturalONE
- Referer: SAG Developer Forum
- Location: California, USA
- Contact:
Re: What is the meaning of Using class on Sort statement ?
END-ALL is well documented in the Statements manual: http://documentation.softwareag.com/nat ... m/sort.htm. What don't you understand?
The keys and the fields in the USING clause are combined to create the SORT record. They are passed to and from the SORT utility. On the first iteration of the SORT loop, the values of all other local variables are unknown.
The keys and the fields in the USING clause are combined to create the SORT record. They are passed to and from the SORT utility. On the first iteration of the SORT loop, the values of all other local variables are unknown.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
COBOL SORT - How to sort entire file first & sort by Key
by k_ekam » Thu Dec 01, 2022 12:58 pm » in IBM Cobol - 3
- 1568
-
by Robert Sample
View the latest post
Wed Dec 07, 2022 7:32 am
-
-
- 8
- 4406
-
by steve-myers
View the latest post
Sat Oct 16, 2021 8:59 pm
-
-
Splice JCL into one record for DD statement parms
by phcribb » Thu Nov 05, 2020 9:31 pm » in CLIST & REXX - 3
- 1966
-
by phcribb
View the latest post
Fri Nov 06, 2020 8:06 pm
-
-
- 1
- 1779
-
by prino
View the latest post
Tue Jul 02, 2024 2:23 pm
-
- 2
- 1454
-
by willy jensen
View the latest post
Fri Aug 13, 2021 8:11 pm