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
 

 

how to declare include cond statement for VB recformat?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
raghuraman
Currently Banned

New User


Joined: 07 Aug 2008
Posts: 6
Location: chennai

PostPosted: Wed Oct 15, 2008 12:16 pm    Post subject: how to declare include cond statement for VB recformat?
Reply with quote

how to declare include cond statement for VB recformat?

Code:

  SORT FIELDS=COPY                         
  INCLUDE COND=(17,07,CH,EQ,C'H190072')   
  OUTREC FIELDS=(17,30)                   


its working for fb..can you give the equivalent declaration for VB.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 15, 2008 12:22 pm    Post subject:
Reply with quote

For a VB file the field position is incremented by 4 to allow for the RDW.
Back to top
View user's profile Send private message
raghuraman
Currently Banned

New User


Joined: 07 Aug 2008
Posts: 6
Location: chennai

PostPosted: Wed Oct 15, 2008 12:33 pm    Post subject:
Reply with quote

thanx expat...as per your suggesion i incremented by 4 now i am getting
this below error.

ICE201I 0 RECORD TYPE IS V - DATA STARTS IN POSITION 5
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 15, 2008 12:37 pm    Post subject:
Reply with quote

That is not an error message, the last charachter of the message id is I - Information.

If you think that there is an error, please post the whole SYSOUT DD output.

Topic moved to DFSORT/ICETOOL where it belongs.
Back to top
View user's profile Send private message
raghuraman
Currently Banned

New User


Joined: 07 Aug 2008
Posts: 6
Location: chennai

PostPosted: Wed Oct 15, 2008 12:45 pm    Post subject:
Reply with quote

i am getting return code 16.

SYSOUT DD output:

Code:

BLOCKSET     COPY  TECHNIQUE SELECTED                                         
VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AND MORE 
- CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 12:28 ON WED OCT 15, 200
       SORT FIELDS=COPY                                                       
       INCLUDE COND=(6,07,CH,EQ,C'NONVSAM')                                   
       OUTREC FIELDS=(23,30)                                                 
RECORD TYPE IS V - DATA STARTS IN POSITION 5                                 
INCONSISTENT *OUTREC  IFTHEN 0 REFORMATTING FIELD FOUND                       
C5-K05352 C6-Q95214 C7-K90000 C8-K05352 E9-K06751 E7-K90000                   
END OF DFSORT                                                                 
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 15, 2008 12:53 pm    Post subject:
Reply with quote

Try

Code:

  OUTREC BUILD=(1,4,23,30)


because the input and output are VB you need to specify the RDW in the output. If you convert the output to FB then you do not need to do this.
Back to top
View user's profile Send private message
raghuraman
Currently Banned

New User


Joined: 07 Aug 2008
Posts: 6
Location: chennai

PostPosted: Wed Oct 15, 2008 12:59 pm    Post subject:
Reply with quote

Its working..thanx a lot.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am


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