| Author |
Message |
Topic: Unpacked data - Replace special characters with zeroes |
mf_user
Replies: 10
Views: 16199
|
Forum: Utilities Posted: Tue Feb 28, 2023 2:21 am Subject: Unpacked data - Replace special characters with zeroes |
Kolusu,
Thanks for the suggestion.
We had that discussion and the expectation is to replace it with zeroes.
so, how do I replace bulk of it with FINDREP, please let me know.
Thanks. |
Topic: Unpacked data - Replace special characters with zeroes |
mf_user
Replies: 10
Views: 16199
|
Forum: Utilities Posted: Mon Feb 27, 2023 6:42 am Subject: Unpacked data - Replace special characters with zeroes |
sorry, I hit enter too soon...
sort card:
1,4,PD,TO=ZD,LENGTH=7
o/p:
----1----2
015Ü3.G0
Expected o/p:
----1----2
01503000
|
Topic: Unpacked data - Replace special characters with zeroes |
mf_user
Replies: 10
Views: 16199
|
Forum: Utilities Posted: Mon Feb 27, 2023 6:37 am Subject: Unpacked data - Replace special characters with zeroes |
Hi Kolusu,
Example with HEXON:
i/p:
----1----2
.*.@
0537
1CFC
o/p:
----1----2
015Ü3.
So, as said, expectation is replace "Ü" with 0 and "." with 0.
o/p ... |
Topic: Unpacked data - Replace special characters with zeroes |
mf_user
Replies: 10
Views: 16199
|
Forum: Utilities Posted: Sun Feb 26, 2023 1:01 am Subject: unpack comp-3 |
Hi Kolusu,
After further analysis, and due to frequent S0C7 abend on certain fields (invalid input data from input file), we had to go for program approach. Declared an input filed of X(105) with a ... |
Topic: Unpacked data - Replace special characters with zeroes |
mf_user
Replies: 10
Views: 16199
|
Forum: Utilities Posted: Sat Feb 25, 2023 2:13 am Subject: Unpacked data - Replace special characters with zeroes |
Hi Kolusu,
I have unpacked them using TO=ZD,LENGTH=n.
the downstream system wants the junk to be replaced with zeroes.
Thanks. |
Topic: Unpacked data - Replace special characters with zeroes |
mf_user
Replies: 10
Views: 16199
|
Forum: Utilities Posted: Thu Feb 23, 2023 6:31 am Subject: Unpacked data - Replace special characters with zeroes |
Hi,
I have unpacked around 98 COMP-3 fields into a dataset and finding below given special characters in the unpacked data (output LRECL=900).
Ā ā Ă ă Ą ą Ć ć Ĉ ĉ Ċ ċ Č č Ď ď Đ ... |
Topic: Syncsort - how to convert to negative number |
mf_user
Replies: 10
Views: 9420
|
Forum: Utilities Posted: Mon Mar 03, 2014 7:57 am Subject: Syncsort - how to convert to negative number |
Here is what I see with HEX ON -
-----
00140P
FFFFFD
001407
-----
01050}
FFFFFD
010500
|
Topic: Syncsort - how to convert to negative number |
mf_user
Replies: 10
Views: 9420
|
Forum: Utilities Posted: Mon Mar 03, 2014 3:49 am Subject: convert to negative values |
In one place you use UFF in another ZD for the same data.
I was trying with both UFF and ZD. So, I used both to see how I get the output.
What do you want the output to look like? Do you ... |
Topic: Syncsort - how to convert to negative number |
mf_user
Replies: 10
Views: 9420
|
Forum: Utilities Posted: Sun Mar 02, 2014 9:27 pm Subject: Syncsort - convert to negative number |
Hi,
I am trying to convert the input to its negative values based on a condition. If any input is greater than 500 then it should be converted to its negative value.
Thanks. |
Topic: Syncsort - how to convert to negative number |
mf_user
Replies: 10
Views: 9420
|
Forum: Utilities Posted: Fri Feb 28, 2014 8:20 am Subject: Syncsort - converting to negative numbers |
Hi,
Our shop uses "SYNCSORT FOR Z/OS 1.3.2.2R" and I have made these attempts after searching this forum but don't get satisfactory results.
Attempt-1:
//SYSIN DD * ... |
Topic: Syncsort - how to convert to negative number |
mf_user
Replies: 10
Views: 9420
|
Forum: Utilities Posted: Fri Feb 28, 2014 6:39 am Subject: Syncsort - how to convert to negative number |
Hi,
I am trying to convert few numbers to negative if input number is greater than 500 but job abend with S0C7 !
//SORT0001 EXEC PGM=SORT
//SYSOUT DD SYSOUT=* ... |
Topic: Basic Q on Fetch |
mf_user
Replies: 1
Views: 3994
|
Forum: Application Programming Posted: Thu Apr 26, 2012 7:28 am Subject: Basic Q on Fetch |
Hi, this is a basic question on Fetch.
Declare
Open
Fetch
Close
Above is the order to use a cursor in a batch program. Now, after open, is it must to do the fetch right after it or can c ... |
Topic: Select max - 4 of year field |
mf_user
Replies: 4
Views: 4979
|
Forum: Database Posted: Mon Apr 23, 2012 3:16 am Subject: Select max - 4 of year field |
| Kolusu, thanks.......it has worked and got the expected results ! |
Topic: Select max - 4 of year field |
mf_user
Replies: 4
Views: 4979
|
Forum: Database Posted: Thu Apr 19, 2012 8:47 am Subject: attributes |
Hi Dick, thanks a lot........
Here are the details..........
year_nbr Character (4)
Thanks. |
Topic: Select max - 4 of year field |
mf_user
Replies: 4
Views: 4979
|
Forum: Database Posted: Thu Apr 19, 2012 6:16 am Subject: Select max - 4 of year field |
Hi, can you help me to write a SQL to pick (MAX YEAR - 4) from a DB2 table that has YEAR field.
I tried below but ended up with SQLCODE -120
SELECT COUNT(*) FROM DB2P.YEAR_TBL
WHERE Y ... |
| |