Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Issue in the usage of OUTREC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 679
Location: London, UK

PostPosted: Mon May 12, 2008 9:16 pm    Post subject: Issue in the usage of OUTREC
Reply with quote

Frank,

Could you please help me in resolving this issue?

My requirement is to get the data available from position 1 to 6 in the input file and overlay the same in an output file in position 60.

Code:
//S1       EXEC PGM=ICEMAN                                           
//SYSOUT   DD SYSOUT=*                                               
//SORTIN   DD DSN= i/p file , FB/10               
//SORTOUT  DD DSN=&&S1,DISP=(,PASS),                                 
//             SPACE=(TRK,(1,1)),UNIT=SYSDA                           
//SYSIN    DD *                                                       
  OPTION COPY,STOPAFT=1                                                                                 
  OUTREC FIELDS=(C'MAILST,''',1,6,C'''',10:X)                         
/*                                                                   
//*                                                                   
//S2       EXEC PGM=ICEMAN                                           
//SYSOUT   DD SYSOUT=*                                               
//SYMNAMES DD DSN=&&S1,DISP=(OLD,PASS)                               
//SORTIN   DD DSN= i/p2 VB/3010
//SORTOUT  DD DSN= o/p  VB/3010
//SYSIN    DD *                                                       
  OPTION COPY                                                         
* USE MAILST to overlay                                     
  INREC OVERLAY=(64:MAILST)                                           
/*                                                                   



I ran this JCL and the error is

Code:
            OUTREC FIELDS=(C'MAILST,''',1,6,C'''',10:X)     
ICE201I E RECORD TYPE IS F - DATA STARTS IN POSITION 1       


I checked few sample JCL's and was not able to crack this.
Back to top
View user's profile Send private message
References
PostPosted: Mon May 12, 2008 9:16 pm    Post subject: Re: Issue in the usage of OUTREC Reply with quote

krisprems

Senior Member


Joined: 27 Nov 2006
Posts: 623
Location: India

PostPosted: Mon May 12, 2008 9:31 pm    Post subject:
Reply with quote

Replace the OUTREC statement in Step S1 with
Code:
OUTREC FIELDS=(C'MAILST,''',1,6,C'''',80:X) 

and give a try...

the prob in your case is u have overlapping fields in OUTREC
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 679
Location: London, UK

PostPosted: Mon May 12, 2008 9:36 pm    Post subject: Reply to: Issue in the usage of OUTREC
Reply with quote

Prem,

No luck. I tried and the result is the same.
Back to top
View user's profile Send private message
Skolusu

DFSORT Developer


Joined: 07 Dec 2007
Posts: 109
Location: San Jose

PostPosted: Mon May 12, 2008 9:58 pm    Post subject:
Reply with quote

aaru,

The symbols dataset should be of FB recfm and 80 bytes in length. you are only creating 10 byte file with overlapping fields. Change the following statement in step S1

Code:

OUTREC FIELDS=(C'MAILST,''',1,6,C'''',10:X)


to

Code:

OUTREC FIELDS=(C'MAILST,''',1,6,C'''',80:X)


and re-run your job

Hope this helps...

Cheers
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 679
Location: London, UK

PostPosted: Mon May 12, 2008 10:20 pm    Post subject: Reply to: Issue in the usage of OUTREC
Reply with quote

Kolusu,

Quote:
OUTREC FIELDS=(C'MAILST,''',1,6,C'''',80:X)


I tried the same and still am getting the same error.

Quote:
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 17:48 O
0 OPTION COPY,STOPAFT=1
OUTREC FIELDS=(C'MAILST,''',1,6,C'''',80:X)
ICE201I E RECORD TYPE IS F - DATA STARTS IN POSITION 1


Any pointers?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 1002
Location: At my desk

PostPosted: Mon May 12, 2008 10:23 pm    Post subject: Re: Reply to: Issue in the usage of OUTREC
Reply with quote

Aaru wrote:
No luck. I tried and the result is the same.
If you really did use krisprems OUTREC, and it did fail, then you had better post your sysins and sysouts........
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Mon May 12, 2008 10:25 pm    Post subject:
Reply with quote

Quote:
I ran this JCL and the error is

Code:
OUTREC FIELDS=(C'MAILST,''',1,6,C'''',10:X)
ICE201I E RECORD TYPE IS F - DATA STARTS IN POSITION 1


Why do you think this is an error message? It isn't! ICExxxI messages are informational messages. ICExxxA messages are error messages. ICE201I is an informational message that tells you the input record is fixed-length. Why would you think that's an error message?

Your problem, as Krisprems and Kolusu have pointed out is that you're creating a 10 byte Symbol record when an 80 byte record is required. That would give you an error in the second step when you try to use the invalid 10-byte SYMNAMES record from the first step. Using an 80-byte SYMNAMES record will work.

Quote:
No luck. I tried and the result is the same.


You mean the ICE201I message is the same - well, of course it is. Your input file for the first step is still a fixed-length record. What should have changed is that the second step didn't fail.

If this is still not working for you, then please show all of your JCL and control statements, and all of the messages you received.
Back to top
View user's profile Send private message
krisprems

Senior Member


Joined: 27 Nov 2006
Posts: 623
Location: India

PostPosted: Mon May 12, 2008 10:33 pm    Post subject:
Reply with quote

post ur complete sysout aaru
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 679
Location: London, UK

PostPosted: Mon May 12, 2008 10:48 pm    Post subject: Reply to: Issue in the usage of OUTREC
Reply with quote

Thanks a ton Prem, Kolusu and Frank.

I re-ran the job and it worked fine. This time i just changed the temporary dataset and it worked.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1