IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What do you mean by OUTREC(1,2,30)


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dilmohan

New User


Joined: 28 Feb 2006
Posts: 6

PostPosted: Mon May 08, 2006 5:22 pm
Reply with quote

Can any one tell me the meaning of third parameter i.e. 30

Dil
Back to top
View user's profile Send private message
Kodisala

New User


Joined: 13 Apr 2005
Posts: 5
Location: Hyderabad

PostPosted: Mon May 08, 2006 5:47 pm
Reply with quote

If I am not wrong... it should be OUTREC(1:2,30)... Then it says 30 characters of input dataset record beginning from 2 nd character should be copied to output dataset record starting with position 1.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon May 08, 2006 8:58 pm
Reply with quote

Code:
 
  OUTREC(1,2,30)


This syntax is incorrect. Presuming this is part of an OUTFIL statement, OUTREC( should be OUTREC=(. And 1,2,30 is not valid at all. 30 would have to be followed by a length to make it valid, e,g (1,2,30,5). (1:2,30) would be valid as Kodishala explains.

Go back to wherever or whoever you got this parameter from and look again.
Back to top
View user's profile Send private message
dilmohan

New User


Joined: 28 Feb 2006
Posts: 6

PostPosted: Tue May 09, 2006 9:36 am
Reply with quote

HI

I checked it again ..its OUTREC FIELDS=(1,4,30) and its there in production.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue May 09, 2006 8:11 pm
Reply with quote

That makes more sense. That's a valid OUTREC statement for a VB input set. It creates output records with the RDW (1,4) and the bytes from input position 30 to the end of the record.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
dilmohan

New User


Joined: 28 Feb 2006
Posts: 6

PostPosted: Wed May 10, 2006 10:17 am
Reply with quote

Hi Yaeger

I wolud really appreciate your efforts to solve my problem.
Otherthan that can you tell me wat is RDW ?
i checked with manuals but nothing helped out.
I got this much that its something related to VB file
Back to top
View user's profile Send private message
Jerry

New User


Joined: 16 Sep 2005
Posts: 42

PostPosted: Wed May 10, 2006 2:05 pm
Reply with quote

Hi Dilmohan,

RDW is Record Word Descriptor, which is used to give details regarding record length in a VB file.

Correct me if I am wrong.

Regards,
Jerry.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed May 10, 2006 8:35 pm
Reply with quote

The RDW is the Record Descriptor Word. It is the first 4 bytes in VB records. The first two bytes gives the length of the record in binary (e.g. a 50 byte record has X'0032' in the first two bytes). The second two bytes are X'0000' for a VB file.
Back to top
View user's profile Send private message
Brian's_song

New User


Joined: 27 Dec 2005
Posts: 21

PostPosted: Wed May 10, 2006 9:23 pm
Reply with quote

Thank you very much , Frank!!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts Sort w/OUTREC Question DFSORT/ICETOOL 2
No new posts Getting OUTREC - SHORT REC error for ... DFSORT/ICETOOL 12
No new posts Issues with outrec overlay while extr... SYNCSORT 7
No new posts SEQNUM with TRA=ETOA in OUTREC SYNCSORT 5
Search our Forums:

Back to Top