View previous topic :: View next topic
|
Author |
Message |
aaleya
New User
Joined: 10 Apr 2008 Posts: 11 Location: chennai
|
|
|
|
Could someone please help me in converting a hex value say '0D' to '40' for VB file using JCL. I am aware of ALTSEQ but i have used it for FB file. I have used the following code :
OPTION COPY
ALTSEQ CODE=(0D40)
OUTREC FIELDS=(1,25296,TRAN=ALTSEQ)
But my input file was FB then. But now i need to do the same thing with a VB file. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hello Aayelya,
You can use following sort card for Vb file so first four bytes will contain RDW. here i assume the max record length for this file is 25300
OPTION COPY
ALTSEQ CODE=(0D40)
OUTREC FIELDS=(5,25296,TRAN=ALTSEQ) |
|
Back to top |
|
|
aaleya
New User
Joined: 10 Apr 2008 Posts: 11 Location: chennai
|
|
|
|
Thanks Ekta!
But when I am trying to use the above code my job is abending saying 'RDW NOT INCLUDED'. Could you please help me with it. |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi,
Please try the following,
Code: |
OPTION COPY
ALTSEQ CODE=(0D40)
OUTREC FIELDS=(5,TRAN=ALTSEQ)
|
Regards
R KARTHIK |
|
Back to top |
|
|
aaleya
New User
Joined: 10 Apr 2008 Posts: 11 Location: chennai
|
|
|
|
Hi,
The job is still abending with the same error.
Thank!
Aaleya |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi,
Can u post the entire JCL using code option, RECFM and LRECL.
Regards
R KARTHIK |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
HI,
Please try the follwing
Code: |
OPTION COPY
ALTSEQ CODE=(0D40)
OUTREC FIELDS=(1,4,5,25296,TRAN=ALTSEQ)
|
and
Code: |
OPTION COPY
ALTSEQ CODE=(0D40)
OUTREC FIELDS=(1,4,5,TRAN=ALTSEQ)
|
Regards
R KARTHIK |
|
Back to top |
|
|
aaleya
New User
Joined: 10 Apr 2008 Posts: 11 Location: chennai
|
|
|
|
Hi Karthik...
Thanks a lot for your code. My job went fine with this :
OPTION COPY
ALTSEQ CODE=(0D40)
OUTREC FIELDS=(1,4,5,TRAN=ALTSEQ)
Thanks!
Aaleya |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Nice to hear that job went fine...
Cheers
R KARTHIK |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
aaleya,
If you have z/OS DFSORT V1R5 PTF UK90013 (July, 2008), you can use the new FINDREP function to do this kind of thing quite easily for both FB and VB files like this:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
INREC FINDREP=(IN=X'0D',OUT=X'40')
/*
|
For complete details on all of the new functions available with the July, 2008 DFSORT PTF, see:
www.ibm.com/systems/support/storage/software/sort/mvs/ugpf/ |
|
Back to top |
|
|
|