Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us