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
 

 

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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts scheduling between OPC and TWS give u... nsbl IBM Tools 3 Sun Mar 12, 2017 5:35 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm


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