View previous topic :: View next topic
|
Author |
Message |
c_litze
New User
Joined: 09 Aug 2006 Posts: 2
|
|
|
|
Hi,
I want to reformat a dataset with DFSORT. I have a VB Dataset and I want to insert a Hex String at the end of the dataset. Does anybody have an idea?
Thanks in advance! |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Please show an example of the records in your input file (including the length of each record) and what you expect for output. Also, give the RECFM and LRECL of your input file. |
|
Back to top |
|
|
c_litze
New User
Joined: 09 Aug 2006 Posts: 2
|
|
|
|
RECFM is VB, Record length is 1000.
The problem is that I don't know the length of each record because it is VB.
Example:
20060808EXAMPLEONE AAABBBCCC
FFFFFFFFCECDDDCDDC4CCCCCCCCC
2006080857147356550111222333
-------------------------------
20060809EXAMPLETWO DDEEFF
FFFFFFFFCECDDDCEED4CCCCCC
2006080957147353660445566
I expect
20060808EXAMPLEONE AAABBBCCC
FFFFFFFFCECDDDCDDC4CCCCCCCCC00
2006080857147356550111222333DA
-------------------------------
20060809EXAMPLETWO DDEEFF
FFFFFFFFCECDDDCEED4CCCCCC00
2006080957147353660445566DA
Thanks. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Here's a DFSORT job that will do what you asked for. You'll need z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) in order to use DFSORT's JFY function. If you don't have the April, 2006 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTF, see:
Use [URL] BBCode for External Links
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (VB/1000)
//SORTOUT DD DSN=... output file (VB/1002)
//SYSIN DD *
OPTION COPY
* Add X'0D0A' and blanks after last non-blank byte of VB record.
INREC OVERLAY=(5:5,996,JFY=(SHIFT=LEFT,TRAIL=X'0D0A',LENGTH=998))
* Remove blanks after X'0D0A'.
OUTFIL VLTRIM=C' '
/*
|
|
|
Back to top |
|
|
|