Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

unload thetable data using DSNUPROC utility

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Madhusudhan Prahlad

New User


Joined: 31 Aug 2015
Posts: 6
Location: India

PostPosted: Tue Dec 01, 2015 5:04 pm    Post subject: unload thetable data using DSNUPROC utility
Reply with quote

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

gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Tue Dec 01, 2015 5:46 pm    Post subject: Reply to: unload thetable data using DSNUPROC utility
Reply with quote

What is the structure of the table?
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1696
Location: NY,USA

PostPosted: Wed Dec 02, 2015 5:26 am    Post subject:
Reply with quote

I am not sure you will need to provide DCB but why do you not prefer DSNTIAUL?
have you looked here
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed Dec 02, 2015 9:22 am    Post subject:
Reply with quote

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

Senior Member


Joined: 21 Sep 2010
Posts: 1696
Location: NY,USA

PostPosted: Wed Dec 02, 2015 11:26 am    Post subject:
Reply with quote

Robert , here it is written that lrecl is ignored. But this is for TS as you concur anyway.
Pralhad, look how it's done here
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us