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
 

 

how to put the project tag for all lines in one go

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
mubashshirji

New User


Joined: 14 Nov 2006
Posts: 16

PostPosted: Wed Mar 28, 2007 5:14 pm    Post subject: how to put the project tag for all lines in one go
Reply with quote

Can somebody tell me how to put the project tag from 73rd column by using a single command for all the lines in a COBOL program.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Mar 28, 2007 5:21 pm    Post subject:
Reply with quote

If you use ISPF to edit your program you could issue the command

C ' ' 'WHATEVER' 73 ALL
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 5:21 pm    Post subject:
Reply with quote

Hi There,

U can do it through sort.
Give ur program pds as input file of sort & use following sort card where
replace ******** with ur program tag

Code:
       
//SYSIN    DD  *                                 
   OPTION COPY                                   
   OUTFIL OUTREC=(1:1,72,C'********')                         
/*           
Back to top
View user's profile Send private message
earsha

New User


Joined: 16 Mar 2007
Posts: 17
Location: Pune

PostPosted: Wed Mar 28, 2007 5:21 pm    Post subject:
Reply with quote

hello mubashshirji,
use the following command:

C ALL 73 P'========' 'XXXXXXXX'
EX.TAGGING OF MY PROJECT IS AG999999

C ALL 73 P'========' 'AG999999'

Here, XXXXXXXX- MEANS THE TAGGING OF YOUR PROJECT.
AND '=' & 'X' VARIES ACCORING TO CONVENTION FOLLWED IN YOUR PROJECT.
IN MY PROJECT WE USE 8 DIGIT FOR TAGGING THATS WHY I HAVE GIVEN THE EXAMPLE USING 8 = & X.
Back to top
View user's profile Send private message
mubashshirji

New User


Joined: 14 Nov 2006
Posts: 16

PostPosted: Wed Mar 28, 2007 6:37 pm    Post subject:
Reply with quote

Thanx a lot for such a quick reply to all..............
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm
No new posts DFSORT split long VB lines efficiently BridgetBrackenbury DFSORT/ICETOOL 2 Fri Feb 12, 2016 5:10 am
No new posts DFSORT VB File make 2 lines from 1 BridgetBrackenbury DFSORT/ICETOOL 2 Fri Feb 12, 2016 3:48 am
No new posts GROUP of undefined number of lines Khadhar Basha DFSORT/ICETOOL 4 Fri Feb 05, 2016 5:15 am


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