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

Dummy out input file in a sort step


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

New User


Joined: 20 Jul 2006
Posts: 48
Location: Chennai

PostPosted: Fri Aug 24, 2007 12:56 pm
Reply with quote

My requirement is, to provide a empty input file to a sort step which is the first step in job with catalogued proc. First I coded like this.

SORTIN DD DUMMY

But the sort card used in this step sorts the input file based on a character in the input file. The sort card is

OMIT COND=(1,1,CH,EQ,C'9')
SORT FIELDS=(2,6,PD,A)
OUTFIL OUTREC=(1:2,6,PD,TO=ZD,LENGTH=9,71X)

So it throws the error as 'INVALID DATA SET ATTRIBUTES SPECIFIED SORTIN RECFM'.

Then I tried overriding the sort card, ie I commented out the the sort card and gave like this.

SYSIN DD *
SORT FIELDS=COPY

But in catalogued proc we cant use DD *. That is what the error I got when I executed the job with the sort card like this.

So what simple step can I give to get my requirement.

Sakthivel.
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Fri Aug 24, 2007 1:06 pm
Reply with quote

If your requirement is just to create an empty output file without any abend/error by passing dummy input file,then here it is

In the JCL where you call the cataloged proc
override as(if stepname is R010)
Code:
R010.SORTIN DD DUMMY
R010.SYSIN DD DSN=******.TEST.CNTLCARD(COPYFILE)



In the Control card pds ******.TEST.CNTLCARD(COPYFILE), have it as
Code:
SORT FIELDS=COPY
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Fri Aug 24, 2007 1:10 pm
Reply with quote

One more option is code DCB parameter for the DUMMY file

Code:
//SORTIN   DD  DUMMY,                           
//             DCB=(RECFM=FB,LRECL=1800)   


Here I have assumed LREC to be 1800.Use per your requirement

No need to change the control card for this method
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Aug 24, 2007 1:22 pm
Reply with quote

Muthu,

Did you try your resolution before posting it?
Back to top
View user's profile Send private message
sakthi_ksv

New User


Joined: 20 Jul 2006
Posts: 48
Location: Chennai

PostPosted: Fri Aug 24, 2007 1:28 pm
Reply with quote

Thanks Muthuvel, It worked as per your second suggestion. that is my requirement too, that i should not modify the sort card. thanks a ton.

But I think we have to also give BLKSIZE parameter for the DUMMY DSN. becuase it gave me error saying INVALID DATASET ATTRIBUTE - BLKSIZE' icon_surprised.gif . After giving BLKSIZE it ran successfully.

Thanks once again for your timely help. icon_biggrin.gif
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Fri Aug 24, 2007 1:32 pm
Reply with quote

It worked fine for me
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top