hai,
i am trying to fetch those records where the name field starts with a specified character, and store them to another flat file. Can anybody suggest me a solution, also i am stating the details of the problem.
for example assume my flat file layout is as following
Emp-id Emp-Name Salary Employer project
i would like to copy those records whose name starts with say 'a'
thanks and regards.....
pavan
JCL to fetch a record from a dataset
-
- Posts: 5
- Joined: Tue Mar 25, 2008 12:19 pm
- Skillset: JCL
COBOL
VSAM
REXX
CICS
DB2 - Referer: GOOGLE
-
- Posts: 110
- Joined: Thu Dec 27, 2007 5:18 pm
- Skillset: Known little stuffs to answer a few queries!!
- Referer: Google
- Contact:
Re: JCL to fetch a record from a dataset
i am stating the details of the problem.
What is the problem?? What did you try and where you stuck??
This requires a simple INCLUDE COND statement.
SYSIN should read:
Code: Select all
SORT FIELDS=COPY
INCLUDE COND=(starting_position,1,CH,EQ,C'A')
Read the examples in the link.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/3.7.3?DT=20060615185603
I would request you to read the DFSORT getting started from
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/CCONTENTS
Also the programming guide from
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/CCONTENTS
Arun.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 4
- 1660
-
by Robert Sample
View the latest post
Sat Aug 29, 2020 12:58 am
-
-
Copy partial record after a string in a record using SORT.
by Esmayeelhusen » Thu May 04, 2023 3:03 pm » in DFSORT/ICETOOL/ICEGENER - 16
- 4195
-
by Esmayeelhusen
View the latest post
Mon May 22, 2023 3:50 pm
-
-
- 2
- 2733
-
by willy jensen
View the latest post
Sat Mar 04, 2023 12:41 pm
-
- 12
- 3852
-
by RalphEagle
View the latest post
Fri Jul 30, 2021 1:00 pm
-
- 3
- 2669
-
by sergeyken
View the latest post
Sat Nov 16, 2024 11:05 pm