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
 

 

DFSORT with Blank I/P file

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

New User


Joined: 01 Mar 2006
Posts: 37
Location: Sussex-UK

PostPosted: Fri Jan 25, 2008 5:23 pm    Post subject: DFSORT with Blank I/P file
Reply with quote

Hi,

We have a job which sometimes can have a blank i/p. It seems DFSORT is objecting this where it worked without any problem with Syncsort.
Can DFSORT handle blank I/P file?

Also can DFSORT cope up with the case where LRECL on O/P file(say 200) is greater than LRECL on I/P file (Say 40)? Syncsort pads with hex Zero, can DFSORT do the same? Or do we need to add OUTREC card?
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


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

PostPosted: Fri Jan 25, 2008 11:47 pm    Post subject:
Reply with quote

What do you mean by a "blank input"? Do you mean an empty input file (no records) or something else? Please show your JCL, control statements, and //SYSOUT messages for the DFSORT job.

Yes, DFSORT will pad with binary zeros (what you're calling hex zero) when the SORTOUT LRECL > SORTIN LRECL. You don't need an OUTREC statement unless you want to pad with something other than binary zeros.
Back to top
View user's profile Send private message
yogeshpawar

New User


Joined: 01 Mar 2006
Posts: 37
Location: Sussex-UK

PostPosted: Sat Jan 26, 2008 2:52 am    Post subject: Reply to: DFSORT with Blank I/P file
Reply with quote

Thanks for the explaination on LRECL.

Blank ip means I/P file with no records.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Sat Jan 26, 2008 3:04 am    Post subject:
Reply with quote

Did you miss the part where I said:

Quote:
Please show your JCL, control statements, and //SYSOUT messages for the DFSORT job.


Your statement that
Quote:
DFSORT is objecting this
isn't much to go on. I don't know what type of empty file you're working with, what error message you received, what options you used or didn't use, etc.

Please supply the requested information.
Back to top
View user's profile Send private message
yogeshpawar

New User


Joined: 01 Mar 2006
Posts: 37
Location: Sussex-UK

PostPosted: Thu Jan 31, 2008 8:11 pm    Post subject: Reply to: DFSORT with Blank I/P file
Reply with quote

Hi Frank,

The messages we got are as follows
------------------------------------------------------------------------------------
ICE000I J - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 22:42 ON MON JAN
SORT FIELDS=(3,1,CH,A,10,6,CH,A,19,1,CH,A)
ICE043A K INVALID DATA SET ATTRIBUTES SPECIFIED SORTOUT LRECL
ICE043A M INVALID DATA SET ATTRIBUTES SPECIFIED SORTIN RECFM
ICE052I J END OF DFSORT
----------------------------------------------------------------------------------
Our guess was this might be due to empty i/p file.

Note that this particular job was running fine with SYNCSORT. Then Support team hardcoded DCB parameter and job started running fine.

SORTIN DD DSN=INPUT.FILE(0),DISP=SHR,
DCB=(RECFM=FB,LRECL=38,BLKSIZE=27968)

SORTOUT DCB was already there, just added BLKSIZE parameter

There are around 25 i/p files in SORTIN
Can you let me know what could have been actual reason? As I am finding it difficult to understand how hardcoding DCB solved the problem?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Thu Jan 31, 2008 10:26 pm    Post subject:
Reply with quote

You would only need to specify the DCB information if it could not be obtained from the data set. The ICE043A for the SORTIN data set says that the RECFM is not available. This could happen if you just allocated the data set without specifying the RECFM and then tried to use it without specifying the RECFM. DFSORT would then have no way of knowing the RECFM. Hardcoding the attributes solved the problem by telling DFSORT what the attributes are.

Perhaps Syncsort took a guess at the RECFM (could be wrong - could be right). If you specified the missing attributes for SORTIN, you wouldn't need to specify any attributes for SORTOUT since DFSORT could figure them out.
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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