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

How to handle PL1 group variable


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nehrujee

New User


Joined: 25 Oct 2007
Posts: 8
Location: Kolkata

PostPosted: Wed Feb 25, 2009 11:16 pm
Reply with quote

Hi,

I am migrating Cobol programs to PL1. I have structure mentioned below
DCL 1 A,
2 B CHAR(40),
2 C CHAR(40),
2 TEST,
3 FILLER CHAR(01) INIT(' '),
3 TEMPVAR CHAR(40);

The TEST is used directly in COBOL has given below but in PL1, group variable cant be used directly.it throws error.

INSPECT TEST REPLACING
ALL "STRA " BY "STR "
ALL " UNTERER " BY " UNT ".

Can anyone help me regard this? How Can i handle group variables in PL1.

Regards
Nehru
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Feb 26, 2009 1:56 am
Reply with quote

Review the PL/I Builtin Function "TRANSLATE".

Click on the following link -

www.ibmmainframes.com/manuals.php

Regards,
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Compare latest 2 rows of a table usin... DB2 1
Search our Forums:

Back to Top