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
 
Sort-require to give a space in the procinput

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

New User


Joined: 29 Aug 2007
Posts: 24
Location: chennai

PostPosted: Fri May 01, 2009 11:16 pm    Post subject: Sort-require to give a space in the procinput
Reply with quote

Hi,

When we give a proc inp member, does it require to give a space in the procinput

Ex:-
Code:
//S020    EXEC PGM=SORT                               
//SYSOUT  DD SYSOUT=(,)                               
//SORTIN  DD DSN=EXAMPLE.U.MJYI(RE251S),DISP=SHR 
//SORTOUT DD DSN=EXAMPLE.RE251.U.MJYI.SRT,DISP=SHR     
//SYSIN   DD DSN=EXAMPLE.WERK.U.PROCINP(AM251),DISP=SHR


IN AM251 the sort card present is:-

Code:

OPTION COPY                                           
  INREC  IFTHEN=(WHEN=(1,1,CH,EQ,C'2'),               
         OVERLAY=(1:C'1',21:C'N',22:C'N',23:C'1')),   
         IFTHEN=(WHEN=(1,1,CH,EQ,C'0'),               
         BUILD=(1:5,58)),                             
         IFTHEN=(WHEN=(1,1,CH,EQ,C'9'),               
         BUILD=(1:5,58))                             
  END                                                 



Since the OPTION COPY is starting from position 1 I get some error. Also i wanted to know whether the OVERLAY used here is correct.

Please help me for the same!!

Regards,
Anand
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri May 01, 2009 11:31 pm    Post subject:
Reply with quote

Quote:
Since the OPTION COPY is starting from position 1 I get some error.
Always....
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 01, 2009 11:41 pm    Post subject:
Reply with quote

Hello Anand and welcome to the forum,

No sort control statement should begin in col 1.

Does your system use DFSORT or Syncsort? I'll move your topic to a better part of the forum once we know which product you use.
Back to top
View user's profile Send private message
Anand Kumar

New User


Joined: 29 Aug 2007
Posts: 24
Location: chennai

PostPosted: Sun May 03, 2009 4:11 am    Post subject: Reply to: Sort-require to give a space in the procinput
Reply with quote

Hi Dick,

Thank you very much.
The system uses DFSORT

Regards,
Anand
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun May 03, 2009 5:49 am    Post subject: Reply to: Sort-require to give a space in the procinput
Reply with quote

Hi Anand,

You're welcome - your topic has been moved icon_smile.gif

d
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: Mon May 04, 2009 9:03 pm    Post subject:
Reply with quote

Anand,

Regardless of the source of DFSORT control statements, you must have at least one blank before the verb (e.g. OPTION, SORT).

Quote:
Also i wanted to know whether the OVERLAY used here is correct.


Well, the syntax is valid. Whether it does what you want depends on what you're trying to do. Note that the following simplified version would be equivalent to what you've coded:

Code:

   OVERLAY=(1:C'1',21:C'NN1')),   
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon May 04, 2009 9:12 pm    Post subject: Re: Sort-require to give a space in the procinput
Reply with quote

Anand Kumar wrote:
Hi,

When we give a proc inp member, does it require to give a space in the procinput

Ex:-
Code:
//S020    EXEC PGM=SORT                               
//SYSOUT  DD SYSOUT=(,)                               
//SORTIN  DD DSN=EXAMPLE.U.MJYI(RE251S),DISP=SHR 
//SORTOUT DD DSN=EXAMPLE.RE251.U.MJYI.SRT,DISP=SHR     
//SYSIN   DD DSN=EXAMPLE.WERK.U.PROCINP(AM251),DISP=SHR


IN AM251 the sort card present is:-

Code:

OPTION COPY                                           
  INREC  IFTHEN=(WHEN=(1,1,CH,EQ,C'2'),               
         OVERLAY=(1:C'1',21:C'N',22:C'N',23:C'1')),   
         IFTHEN=(WHEN=(1,1,CH,EQ,C'0'),               
         BUILD=(1:5,58)),                             
         IFTHEN=(WHEN=(1,1,CH,EQ,C'9'),               
         BUILD=(1:5,58))                             
  END                                                 



Since the OPTION COPY is starting from position 1 I get some error. Also i wanted to know whether the OVERLAY used here is correct.

Please help me for the same!!

Regards,
Anand


Why not just edit "EXAMPLE.WERK.U.PROCINP(AM251)" and correct it?
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts The TS7720 is out of cache space. Rex Montemayor All Other Mainframe Topics 2 Mon Sep 25, 2017 7:18 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

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