View previous topic :: View next topic
|
Author |
Message |
Rajendra Kumar
New User
Joined: 26 Jun 2009 Posts: 13 Location: Hyderabad
|
|
|
|
Hi,
I want to insert a value(say "9") into one of the VSAM file through SORT.
The VSAM file is of length 105...I want to insert all 9's,basically 105(hunderd & five) 9's into the VSAM file.
The VSAM output file should have the record as "99999999999999999999999999999999999......105 9"s".
Can somebody help me out for this logic. |
|
Back to top |
|
|
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
try ...
Code: |
//STEP2 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD *
DUMMY RECORD
//SORTOUT DD DSN=YOUR.VSAM.KSDS,DISP=OLD
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(105C'9')
/*
|
|
|
Back to top |
|
|
Rajendra Kumar
New User
Joined: 26 Jun 2009 Posts: 13 Location: Hyderabad
|
|
|
|
Thanks a lot it is working.......
Previously,I had also tried with the same logic but the only mistake which I had done was i had coded as
SORTIN DD DUMMY
instead of
SORTIN DD *
DUMMY RECORD
so the Job was abending with ABEND=S000 U0016
Anyway,once again Thx.... |
|
Back to top |
|
|
|