View previous topic :: View next topic
|
Author |
Message |
nithinlenin
New User
Joined: 06 Feb 2007 Posts: 19 Location: Hyderabad
|
|
|
|
Hi!
can anyone suggest me how to find out the high values in a file and replace them by space.
Can this be done using ALTSEQ . i tried ALTSEQ for replacing low values (ALTSEQ CODE=(0040) )and that is working fine but the same logic with high values is not working (ALTSEQ CODE=(FF40) ).
any batch method to do that would be really helpful. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
If it worked for low values, it will work for high values.
What does your JCL look like? |
|
Back to top |
|
|
nithinlenin
New User
Joined: 06 Feb 2007 Posts: 19 Location: Hyderabad
|
|
|
|
Code: |
//STEP0010 EXEC PGM=OPNZERO,
// PARM=SORT,
// COND=(0,NE)
//SYSIN DD *
SORT FIELDS=COPY
ALTSEQ CODE=(FF40)
OUTREC FIELDS=(1,6,7,8,TRAN=ALTSEQ,15,3)
/*
//SORTIN DD DSN=XIY1.PROJ.JCLLIB(NSORTW2),DISP=SHR
//*
//SORTOUT DD DSN=X1IG.SYSORT.OUTPUT2,
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(5,1),RLSE)
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
|
|
|
Back to top |
|
|
nithinlenin
New User
Joined: 06 Feb 2007 Posts: 19 Location: Hyderabad
|
|
|
|
the input files looks smthg like this
ABCD1 11111111 00
ABCD2 11111111 00
ABCD3 11111111 00
ABCD4 11111111 00
ABCD5 11111111 00
ABCD6 11111111 00
ABCD7 11111111 00
ABCD8 11111111 00
ABCD9 11111111 00
ABCE1 11111111 00
ABCE2 11111111 00
ABCE3 11111111 00
ABCE4 11111111 00
ABCE5 11111111 00
ABCE6 11111111 00
ABCE7 11111111 00
ABCE8 11111111 00 |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
OK, where is the X'FF' you are trying to convert? |
|
Back to top |
|
|
nithinlenin
New User
Joined: 06 Feb 2007 Posts: 19 Location: Hyderabad
|
|
|
|
Space in EBcidic is represented asX'40' Like wise
how will the highvalues be represented ?? ie wat is the EBcidic for X'FF'.
Also wat all comes under " high values ' in Ebcidic |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
nithinlenin wrote: |
Space in EBcidic is represented asX'40' Like wise
how will the highvalues be represented ?? ie wat is the EBcidic for X'FF'.
Also wat all comes under " high values ' in Ebcidic |
Huh?
"ABCE4 11111111 00" does not contain any X'FF'.
The 7,8 you are trying to convert contains eight X'F1".
I'm confused...... |
|
Back to top |
|
|
nithinlenin
New User
Joined: 06 Feb 2007 Posts: 19 Location: Hyderabad
|
|
|
|
yaa.. i get wat u r sayingg.. so can u provide me with any data having any highvalue |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Do you want to translate the "1"s in "ABCE4 11111111 00" to spaces? |
|
Back to top |
|
|
nithinlenin
New User
Joined: 06 Feb 2007 Posts: 19 Location: Hyderabad
|
|
|
|
that i think will work with (F140).. !! rght
i want to know the concept of these high values ...
and how these high value data looks llike |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
nithinlenin wrote: |
that i think will work with (F140).. !! rght
i want to know the concept of these high values ...
and how these high value data looks llike |
Right,
Just a low values are X'00', the lowest possible value a byte can have, X'FF' is the highest possible value with all eight bits set to ones. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
nithinlenin wrote: |
that i think will work with (F140).. !! rght
i want to know the concept of these high values ...
and how these high value data looks llike |
High values are x'FF' or b'11111111' they are not a displayable character thus they don't look like anything. |
|
Back to top |
|
|
|