IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Changing hex value for a VB file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
aaleya

New User


Joined: 10 Apr 2008
Posts: 11
Location: chennai

PostPosted: Mon Sep 15, 2008 1:15 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Sep 15, 2008 1:49 pm
Reply with quote

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
View user's profile Send private message
aaleya

New User


Joined: 10 Apr 2008
Posts: 11
Location: chennai

PostPosted: Mon Sep 15, 2008 3:46 pm
Reply with quote

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
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Mon Sep 15, 2008 4:20 pm
Reply with quote

Hi,

Please try the following,

Code:

OPTION COPY
ALTSEQ CODE=(0D40)
OUTREC FIELDS=(5,TRAN=ALTSEQ)


Regards
R KARTHIK
Back to top
View user's profile Send private message
aaleya

New User


Joined: 10 Apr 2008
Posts: 11
Location: chennai

PostPosted: Mon Sep 15, 2008 4:25 pm
Reply with quote

Hi,

The job is still abending with the same error.

Thank!
Aaleya
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Mon Sep 15, 2008 4:50 pm
Reply with quote

Hi,

Can u post the entire JCL using code option, RECFM and LRECL.

Regards
R KARTHIK
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Mon Sep 15, 2008 4:56 pm
Reply with quote

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
View user's profile Send private message
aaleya

New User


Joined: 10 Apr 2008
Posts: 11
Location: chennai

PostPosted: Mon Sep 15, 2008 5:31 pm
Reply with quote

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
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Mon Sep 15, 2008 5:34 pm
Reply with quote

Nice to hear that job went fine...

Cheers
R KARTHIK
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Sep 17, 2008 2:47 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top