Went through the forum , i am not finding a solution for the below issue. Appreciate your inputs.
Issue:
I have a data set(6067 LRECL) which has Zonal decimal form 'Numerical' present from 32 position, length =32. I am planning to trim the leading and trailing spaces from this numeric field and would like to make it 9(5)V9(11) and write to a data set along with other fields.
1. I used Overlay function to trim the spaces, like below. Output data set does not have any values from the input file after 32 position. Not sure what is wrong.
Input file field:
Thanks for the suggestion. Please understand that the above code is not a rip off from internet or from other forum, i searched and found these functions and example usage and tried it for my problem. Before reaching out to forum, I make sure to try my best.
Quote:
2. Do not use parameters not related in any manner to your task (MID, LEAD, TRAIL, LENGTH)
Numerical data field has leading as well as trialing spaces and it is 32 bytes length, my target field is 16 bytes. Since this field had leading as well as trialing spaces, i used these functions.
Quote:
Run simple tests (without extra fields), - just you to understand the behavior of SQZ, and JFY parameters for yourself
As you have suggested, I will explore more simple examples and come back with detailed and specific problem statement.
Again, it is not my intention to ask other folks to do my work, it was rather out of not finding solution to my issue, i posted the above issue. Please see my other posts to know whether i reach the forum without checking it by myself.