View previous topic :: View next topic
|
Author |
Message |
Madhusudhan Prahlad
New User
Joined: 31 Aug 2015 Posts: 6 Location: India
|
|
|
|
Hi All,
I am unloading the table data(317) into PS file by using DSNUPROC utility.
The table data is copying into PS file but the PS file is creating with LRECl = 32756 with VB format . I want PS file to be created with LRECL=317.
I have given DCB parameters to SYSREC, but still it is creating with 32756.
Please let me know what are the options we need to give to exact table length. |
|
Back to top |
|
 |
gylbharat
Active Member
.jpg)
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
What is the structure of the table? |
|
Back to top |
|
 |
Rohit Umarjikar
Global Moderator

Joined: 21 Sep 2010 Posts: 2572 Location: NYC,USA
|
|
|
|
I am not sure you will need to provide DCB but why do you not prefer DSNTIAUL?
have you looked here |
|
Back to top |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8569 Location: Dubuque, Iowa, USA
|
|
|
|
Are you trying to create a fixed length PS data set or variable length? If variable length, 317 does NOT account for the RDW that is required (LRECL must be at least 321). If fixed length, DB2 might be ignoring that because the utility outputs variable length records; you might try using VB instead of FB (don't forget to add the 4 bytes for the RDW).
Otherwise, the link Rohit posted implies (but does not explicitly state) that you cannot provide a record length of SYSREC so it may not be possible to do what you want, anyway. |
|
Back to top |
|
 |
Rohit Umarjikar
Global Moderator

Joined: 21 Sep 2010 Posts: 2572 Location: NYC,USA
|
|
Back to top |
|
 |
|