I have an input file of record length 410 and each file record contains 4 fields - first 2 fields are of type INT(4),third field is of DATE type and fourth field is of type CHAR of length 45.
The first 2 fields are not displayed as they are integers.The requirement is to convert the fields to displayable format and copy the entire record to another file with the fields delimited by comma.
Is it possible to achieve this using OUTFIL BUILD option?
Display Integer Fields along with Date using OUTFIL
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Display Integer Fields along with Date using OUTFIL
What have you tried?
What was the result?
How did the result differ from what you requred?
Where does your source data come from (DATE is not a valid PL/I or COBOL data type)?
An integer is just a whole number so how come you cannot display it?
What was the result?
How did the result differ from what you requred?
Where does your source data come from (DATE is not a valid PL/I or COBOL data type)?
An integer is just a whole number so how come you cannot display it?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
Re: Display Integer Fields along with Date using OUTFIL
The source data comes from DB2 table and written to a PS file. In the first 2 fields (declared as INT(4) in the DB2 table )are not displayed as such in the file whereas the DATE field is displayed properly. I read in the manuals that the integer fields need to be modified using OUTFIL to display correctly. I tried the below SORT card logic to modify the fields and write to another dataset.
In the output file the first field is displayed correctly but the second field is displayed as some other number whereas the date is not displayed.
I doubt the issue is with the BUILD option I am using.
Code: Select all
BUILD=(1,4,BI,EDIT=(IIIIIIIIT),C',',11,4,BI,EDIT=(IIIIIIIIT),C',',21,10,C',',32,45,410:X
In the output file the first field is displayed correctly but the second field is displayed as some other number whereas the date is not displayed.
I doubt the issue is with the BUILD option I am using.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 2
- 2383
-
by Murali_721
View the latest post
Thu Nov 19, 2020 4:24 pm
-
- 4
- 4781
-
by willy jensen
View the latest post
Thu Nov 12, 2020 2:40 pm
-
- 6
- 1925
-
by sergeyken
View the latest post
Sat Jul 17, 2021 12:38 am
-
-
How To display the count based on a specific string?
by Chintu333 » Fri Aug 19, 2022 12:59 am » in DFSORT/ICETOOL/ICEGENER - 3
- 2099
-
by sergeyken
View the latest post
Fri Aug 19, 2022 8:52 pm
-
-
- 3
- 5887
-
by sergeyken
View the latest post
Sat Dec 10, 2022 2:30 am